summaryrefslogtreecommitdiff
path: root/public/report/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/report/index.php')
-rw-r--r--public/report/index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/report/index.php b/public/report/index.php
index e040123..179c2bd 100644
--- a/public/report/index.php
+++ b/public/report/index.php
@@ -9,6 +9,11 @@ if (!authorize_user(true)) {
exit;
}
+if (isset($_SESSION["user_role"]) && !$_SESSION["user_role"]["permission_report"]) {
+ generate_alert("/404.php", "Not enough permissions", 403);
+ exit;
+}
+
$db = new PDO(DB_URL, DB_USER, DB_PASS);
$report = null;
$report_id = $_GET["id"] ?? "";