private function check_authorizations() { if (!OnlineAuthorizationsService::check_authorizations()->read()) { $error_controller = PHPBoostErrors::user_not_authorized(); DispatchManager::redirect($error_controller); } }
public function is_displayed() { return !Url::is_current_url('/online/') && OnlineAuthorizationsService::check_authorizations()->read(); }