Sidebar: Aktivitätscheck moves into the admin section by default
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
8f15909ab0
commit
5428d869ea
2 changed files with 8 additions and 8 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
|
|
@ -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 => ($
|
|||
<?= icon('bell') ?><span class="label">Events</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($canManageActivity): ?>
|
||||
<a href="/activity.php" data-nav="/activity.php"<?= $navOrder('/activity.php') ?> class="sidebar-link<?= $isActivityActive ? ' active' : '' ?>" title="Aktivitätscheck">
|
||||
<?= icon('check') ?><span class="label">Aktivitätscheck</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($canViewMap): ?>
|
||||
<a href="/map.php" data-nav="/map.php"<?= $navOrder('/map.php') ?> class="sidebar-link<?= $isMapActive ? ' active' : '' ?>" title="Karte">
|
||||
<?= icon('map') ?><span class="label">Karte</span>
|
||||
|
|
@ -321,6 +316,11 @@ $otherFlashes = array_values(array_filter($allFlashes, fn (array $f): bool => ($
|
|||
<?= icon('shield') ?><span class="label">Berechtigungsgruppen</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($canManageActivity): ?>
|
||||
<a href="/activity.php" data-nav="/activity.php"<?= $navOrder('/activity.php') ?> class="sidebar-link<?= $isActivityActive ? ' active' : '' ?>" title="Aktivitätscheck">
|
||||
<?= icon('check') ?><span class="label">Aktivitätscheck</span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($canViewReports): ?>
|
||||
<a href="/reports.php" data-nav="/reports.php"<?= $navOrder('/reports.php') ?> class="sidebar-link<?= $isReportsActive ? ' active' : '' ?>" title="Reports">
|
||||
<?= icon('flag') ?><span class="label">Reports</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue