/** * Checks whether the current user is authenticated and redirects to the * login form if necessary. * * @return void */ protected function checkAuthentication() { if ($this->isAuthenticationRequired() && !UserService::isAuthenticated(Application::getUser())) { $this->redirectTo($this->getAuthenticationLoginUrl()); } }
/** * @see \Ableron\Core\Controller\AbstractController::checkAuthentication() */ protected function checkAuthentication() { if (UserService::isAuthenticated(Application::getUser())) { $this->redirectTo(EnvironmentUtil::getInternalUrl('/')); } }