From 17d243371c43847e9dbdeb21395afc0e8f5437ae Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Mon, 24 Apr 2023 04:36:57 +0300 Subject: edit lesson: putting all together; media with privile level --- public/app/controllers/Auth.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'public/app/controllers/Auth.php') 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])); + } + + } -- cgit v1.2.3