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