Fix infinite redirect loop when user doesn't have access permission

master
Skylar Ittner 6 years ago
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…
Cancel
Save