summaryrefslogtreecommitdiff
path: root/classes/Handler_Protected.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_Protected.php
parent0a5507d3bd79d04c860455664f919bf8e7274fda (diff)
move to psr-4 autoloader
Diffstat (limited to 'classes/Handler_Protected.php')
-rw-r--r--classes/Handler_Protected.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/Handler_Protected.php b/classes/Handler_Protected.php
new file mode 100644
index 000000000..a15fc0956
--- /dev/null
+++ b/classes/Handler_Protected.php
@@ -0,0 +1,7 @@
+<?php
+class Handler_Protected extends Handler {
+
+ function before(string $method): bool {
+ return parent::before($method) && !empty($_SESSION['uid']);
+ }
+}