summaryrefslogtreecommitdiff
path: root/public/system
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-16 01:18:24 +0500
committerilotterytea <iltsu@alright.party>2025-05-16 01:18:24 +0500
commitfccc2894d5775d045f557a289a6a4713346a8cad (patch)
treea8ffad164e7c515d3cc5210c17f2c0df2ad4a7e2 /public/system
parent0fac4eabc661e4425cf21d461c0e18b542fa8003 (diff)
fix: remove report buttons on disabled REPORTS_ENABLE
Diffstat (limited to 'public/system')
-rw-r--r--public/system/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/system/index.php b/public/system/index.php
index 8786b0e..95b17a5 100644
--- a/public/system/index.php
+++ b/public/system/index.php
@@ -47,7 +47,7 @@ $db = new PDO(DB_URL, DB_USER, DB_PASS);
echo '</a>';
}
- if ($_SESSION["user_role"]["permission_report_review"]) {
+ if (REPORTS_ENABLE && $_SESSION["user_role"]["permission_report_review"]) {
echo '<a href="/system/reports">Reports';
$results = $db->query("SELECT COUNT(*) FROM reports WHERE resolved_by IS NULL")->fetch()[0];