/** * Check if anonymous is granted to access else redirect to login page * * @param Array $server * * @return void */ public function verifyRequest($server) { $user = $this->getCurrentUser(); if (!ForgeConfig::areAnonymousAllowed() && $user->isAnonymous() && !$this->isScriptAllowedForAnonymous($server) && !$this->getPermissionsOverriderManager()->doesOverriderAllowUserToAccessPlatform($user)) { $redirect = new URLRedirect(); $this->urlChunks['script'] = $redirect->buildReturnToLogin($server); } }
/** * Check if anonymous is granted to access else redirect to login page * * @param Array $server * * @return void */ public function verifyRequest($server) { $user = $this->getCurrentUser(); if ($this->doesPlatformRequireLogin() && $user->isAnonymous() && !$this->isScriptAllowedForAnonymous($server)) { $redirect = new URLRedirect(); $this->urlChunks['script'] = $redirect->buildReturnToLogin($server); } }