Adds "admin" dashboard page

main
Yasen Pramatarov 2025-12-21 11:05:39 +02:00
parent a272294fc0
commit 4639baeef9
2 changed files with 4 additions and 1 deletions

View File

@ -74,6 +74,9 @@
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=admin-tools"> <a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=admin-tools">
<i class="fas fa-toolbox"></i>Admin tools <i class="fas fa-toolbox"></i>Admin tools
</a> </a>
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=admin">
<i class="fas fa-toolbox"></i>Admin
</a>
<?php } ?> <?php } ?>
<?php if ($userObject->hasRight($userId, 'superuser') || <?php if ($userObject->hasRight($userId, 'superuser') ||
$userObject->hasRight($userId, 'view config file')) {?> $userObject->hasRight($userId, 'view config file')) {?>

View File

@ -141,7 +141,7 @@ $allowed_urls = [
'graphs','latest','livejs','agents', 'graphs','latest','livejs','agents',
'profile','credentials','config','security', 'profile','credentials','config','security',
'settings','theme','theme-asset', 'settings','theme','theme-asset',
'admin-tools', 'admin', 'admin-tools',
'status', 'status',
'help','about', 'help','about',
'login','logout', 'login','logout',