예제 #1
0
 protected function checkPermissions($sDenyMessage = null, array $arrDenyArgvs = array())
 {
     if (!$this->authorizer()->check(IdManager::singleton())) {
         $this->permissionDenied($sDenyMessage, $arrDenyArgvs);
     }
 }
예제 #2
0
 public static function checkLogined(Controller $aCauseController)
 {
     if (!IdManager::singleton()->currentId()) {
         throw new AuthenticationException($aCauseController);
     }
 }