summaryrefslogtreecommitdiff
path: root/system/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/index.php')
-rw-r--r--system/index.php5
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>