Upload via GUI (335 Dateien)

This commit is contained in:
2026-10-24 20:14:43 +00:00
parent 793fe6162e
commit c270c0b6cf
21 changed files with 2955 additions and 1 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ try {
// ── Welche Seiten sieht wer? ───────────────────────────────────────────
$keys = fn(string $t): array => array_column(($api('GET', '/api/staff/v1/web_pages.php', null, $t)[1]['pages'] ?? []), 'key');
$kc = $keys($chef); $ka = $keys($agent); $kp = $keys($pfleger);
$check(count($kc) === 17 && in_array('settings', $kc, true) && in_array('backup', $kc, true) && in_array('assistant', $kc, true), 'Administrator sieht alle 17 Seiten');
$check(count($kc) === 19 && in_array('settings', $kc, true) && in_array('backup', $kc, true) && in_array('assistant', $kc, true), 'Administrator sieht alle 19 Seiten');
$check($ka === ['mentions', 'agent_directory'], 'Mitarbeiter ohne Rechte sehen nur Erwähnungen und Verzeichnis ' . json_encode($ka));
$check(in_array('assistant', $kp, true) && !in_array('settings', $kp, true) && !in_array('backup', $kp, true) && !in_array('plugins', $kp, true), 'Mit dem Recht „Assistent“ kommt genau diese Seite dazu, aber keine Systemseiten ' . json_encode($kp));