diff --git a/control.php b/control.php index aa8f1d7..71b5066 100644 --- a/control.php +++ b/control.php @@ -40,9 +40,6 @@ if (checkSessionAndRedirect(false)) { // from the sitemap requires group access ie. !Anonymous then redirect to no // permission page) -// reset authorisation flag before checking access -$_SESSION["pageAccess"] = NULL; - // check whether the users group has access to the requested page $page = $default->siteMap->getPage($action, $_SESSION["userID"]); diff --git a/presentation/login.php b/presentation/login.php index 68b47a1..1a127b1 100644 --- a/presentation/login.php +++ b/presentation/login.php @@ -66,6 +66,9 @@ if ($loginAction == "loginForm") { $session = new Session(); $sessionID = $session->create($userDetails["userID"]); + // initialise page-level authorisation array + $_SESSION["pageAccess"] = NULL; + // check for a location to forward to if (isset($redirect) && strlen(trim($redirect))>0) { $url = urldecode($redirect);