summaryrefslogtreecommitdiff
path: root/public/app/controllers/Auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/controllers/Auth.php')
-rw-r--r--public/app/controllers/Auth.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/app/controllers/Auth.php b/public/app/controllers/Auth.php
index d7b0c3b..b00843c 100644
--- a/public/app/controllers/Auth.php
+++ b/public/app/controllers/Auth.php
@@ -322,6 +322,13 @@ class Auth {
}
+ public static function is_admin()
+ {
+ $manager = new Classroom_manager();
+ return ($manager->isGranted([1,2,3]));
+ }
+
+
}