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