summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-14 15:50:46 +0300
committerAndrew Dolgov <[email protected]>2021-02-14 15:50:46 +0300
commit0b7377238a556708035b0cd51a9e58693fb648f6 (patch)
treee3a0d0b497898f6f9430c8a813000722a7f3c8ee /classes/handler
parent33ea46c2bc5c91d7767f11c230a941cc635c0e67 (diff)
add Handler_Administrative
Diffstat (limited to 'classes/handler')
-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..52dfed8b7
--- /dev/null
+++ b/classes/handler/administrative.php
@@ -0,0 +1,11 @@
+<?php
+class Handler_Administrative extends Handler_Protected {
+ function before($method) {
+ if (parent::before($method)) {
+ if (($_SESSION["access_level"] ?? 0) >= 10) {
+ return true;
+ }
+ }
+ return false;
+ }
+}