mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
82f581d561
commit
d69a55e3d6
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user