siteMap->getPage($action, $_SESSION["groupID"]); if (!$page) { // this group doesn't have permission to access the page // or there is no page mapping for the requested action // TODO: build no permission page print "you do not have access to view this page! please go away, and come back when you do."; exit; } else { // set authorised flag $sessionStatus["authorised"] = true; //echo "about to redirect to $page
"; redirect($page); // FIXME: append original request if necessary //if (isset($originalRequest)) { //redirect($page . "?fRedirect=$originalRequest"); //} else { //redirect($page); //} } ?>