summaryrefslogtreecommitdiff
path: root/classes/Handler_Administrative.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-25 12:55:09 +0300
committerAndrew Dolgov <[email protected]>2023-10-25 12:55:09 +0300
commit865ecc87963dc3b26e66296616eef2a1cc41ac3f (patch)
treebf2ecd8a391103bdb2c8b70cd33c47467310754b /classes/Handler_Administrative.php
parent0a5507d3bd79d04c860455664f919bf8e7274fda (diff)
move to psr-4 autoloader
Diffstat (limited to 'classes/Handler_Administrative.php')
-rw-r--r--classes/Handler_Administrative.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/Handler_Administrative.php b/classes/Handler_Administrative.php
new file mode 100644
index 000000000..533cb3630
--- /dev/null
+++ b/classes/Handler_Administrative.php
@@ -0,0 +1,11 @@
+<?php
+class Handler_Administrative extends Handler_Protected {
+ function before(string $method): bool {
+ if (parent::before($method)) {
+ if (($_SESSION["access_level"] ?? 0) >= UserHelper::ACCESS_LEVEL_ADMIN) {
+ return true;
+ }
+ }
+ return false;
+ }
+}