Example #1
0
 public static function checkSuperAdminPermission()
 {
     if (Session::checkAdminPermission() && "SUPER_ADMIN" === Session::getLoggedInUser()) {
         // You are allowed to perform operation
         return true;
     } else {
         return Session::throwHimOut();
     }
 }