diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-11 00:33:19 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-11 00:33:19 +0500 |
| commit | b852b37bf1a8b55d5d00629f2cbe510556e7360a (patch) | |
| tree | 55c2afb8e21960e5649f038e76d13f47913bcae2 | |
| parent | 737a98595d635c9ab4426a8cec7112f5f67bdbd1 (diff) | |
feat: instance configuration button
| -rw-r--r-- | system/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/system/index.php b/system/index.php index 59dedfa..989e8f3 100644 --- a/system/index.php +++ b/system/index.php @@ -9,7 +9,7 @@ if (!CONFIG['mod']['dashboard']) { exit; } -if (!authorize_user(true) || (!$_SESSION["user_role"]["permission_approve_emotes"] && !$_SESSION["user_role"]["permission_report_review"])) { +if (!authorize_user(true) || !$_SESSION["user_role"]["permission_approve_emotes"] && !$_SESSION["user_role"]["permission_report_review"]) { generate_alert("/404.php", "Not enough permissions", 403); exit; } @@ -59,6 +59,9 @@ $db = new PDO(CONFIG['database']['url'], CONFIG['database']['user'], CONFIG['dat echo '</a>'; } ?> + <?php if ($_SESSION['user_role']['permission_admin']): ?> + <a href="/system/config.php">Instance configuration</a> + <?php endif; ?> </div> </section> </section> |
