nuage de tags sur la liste, suppression dropdown navbar, rôles/droits sur le profil
This commit is contained in:
+7
-3
@@ -680,7 +680,9 @@ switch ($action) {
|
||||
$_pd = new Parsedown();
|
||||
$autoSeoDesc = mb_strimwidth(
|
||||
trim((string)preg_replace('/\s+/', ' ', strip_tags($_pd->text($content)))),
|
||||
0, 155, '…'
|
||||
0,
|
||||
155,
|
||||
'…'
|
||||
);
|
||||
unset($_pd);
|
||||
|
||||
@@ -1639,13 +1641,15 @@ switch ($action) {
|
||||
$st = $pdo->prepare('SELECT id, name, label FROM roles WHERE name = :n');
|
||||
$st->execute([':n' => $editRoleName]);
|
||||
$editRole = $st->fetch(PDO::FETCH_ASSOC) ?: null;
|
||||
} catch (\Throwable) {}
|
||||
} catch (\Throwable) {
|
||||
}
|
||||
if ($editRole) {
|
||||
try {
|
||||
$st = $pdo->prepare('SELECT capability FROM role_capabilities WHERE role_id = :id');
|
||||
$st->execute([':id' => $editRole['id']]);
|
||||
$editRoleCaps = $st->fetchAll(PDO::FETCH_COLUMN) ?: [];
|
||||
} catch (\Throwable) {}
|
||||
} catch (\Throwable) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$editRole) {
|
||||
|
||||
Reference in New Issue
Block a user