diff --git a/includes/functions.php b/includes/functions.php index 7089cec..d83d8b0 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -8,13 +8,13 @@ declare(strict_types=1); // Admin-Bereich wird getrennt sortiert und bleibt unter seiner Ueberschrift. const SIDEBAR_NAV_MAIN = [ '/dashboard.php', '/profile.php', '/members.php', '/contributions.php', '/shop.php', 'gap', - '/wiki.php', '/raids.php', '/premades.php', '/calendar.php', '/events.php', '/activity.php', + '/wiki.php', '/raids.php', '/premades.php', '/calendar.php', '/events.php', '/map.php', '/gear.php', '/warehouse.php', ]; // So viele zusaetzliche Trennlinien darf jedes Mitglied einfuegen const SIDEBAR_MAX_EXTRA_GAPS = 10; const SIDEBAR_NAV_ADMIN = [ - '/admin/users.php', '/admin/roles.php', '/reports.php', '/bugs.php', '/moderation.php', '/admin/site.php', '/admin/audit.php', '/admin/reset.php', + '/admin/users.php', '/admin/roles.php', '/activity.php', '/reports.php', '/bugs.php', '/moderation.php', '/admin/site.php', '/admin/audit.php', '/admin/reset.php', ]; const AION_CLASSES = ['Templer', 'Gladiator', 'Assassine', 'Jäger', 'Magier', 'Beschwörer', 'Kleriker', 'Kantor']; diff --git a/includes/header.php b/includes/header.php index f9e0e18..13b6976 100644 --- a/includes/header.php +++ b/includes/header.php @@ -63,7 +63,7 @@ if ($canManageBugs) { // Daten zuruecksetzen (Testdaten loeschen) nur fuer Entwickler $canResetData = $currentUser && is_developer($currentUser); $canManageSite = $currentUser && (user_has_permission('site.maintenance') || user_has_permission('site.announce')); -$showAdminMenu = $canViewUsers || $canManageRoles || $canViewReports || $canManageBugs || $canViewAudit || $canModerate || $canResetData || $canManageSite; +$showAdminMenu = $canViewUsers || $canManageRoles || $canManageActivity || $canViewReports || $canManageBugs || $canViewAudit || $canModerate || $canResetData || $canManageSite; // Neue Discord-Anmeldungen, die auf Freischaltung warten - als Zahl am Menuepunkt. $pendingUserCount = $canViewUsers ? (int) db()->query("SELECT COUNT(*) FROM users WHERE status = 'pending'")->fetchColumn() @@ -286,11 +286,6 @@ $otherFlashes = array_values(array_filter($allFlashes, fn (array $f): bool => ($ Events - - class="sidebar-link" title="Aktivitätscheck"> - Aktivitätscheck - - class="sidebar-link" title="Karte"> Karte @@ -321,6 +316,11 @@ $otherFlashes = array_values(array_filter($allFlashes, fn (array $f): bool => ($ Berechtigungsgruppen + + class="sidebar-link" title="Aktivitätscheck"> + Aktivitätscheck + + class="sidebar-link" title="Reports"> Reports