Fixed #8297 If user has no page permissions it will automatically log them out so they don't get stuck on the logout page

This commit is contained in:
Stephen Jones 2018-01-26 13:37:51 -06:00
parent 82f581d561
commit d69a55e3d6

View File

@ -73,7 +73,10 @@ if (!isAllowedPage($_SERVER['REQUEST_URI'])) {
exit;
} else {
// add this so they don't get stuck on the logout page when they have no permissions.
$_SESSION["Logged_In"] = false;
display_error_form("201", gettext("No page assigned to this user! Click here to logout."));
exit;
}
} else {