Fix infinite redirect loop when user doesn't have access permission
This commit is contained in:
parent
2da4e858d2
commit
83d3171456
@ -250,7 +250,7 @@ function redirectIfNotLoggedIn() {
|
||||
}
|
||||
require_once __DIR__ . "/lib/login.php";
|
||||
if (account_has_permission($_SESSION['username'], "INV_VIEW") == FALSE) {
|
||||
header('Location: ./index.php');
|
||||
header('Location: ./index.php?permissionerror');
|
||||
die("You don't have permission to be here.");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user