Fix error when attempting to login without permission
This commit is contained in:
parent
a8d11a76cd
commit
f7f2653378
@ -13,10 +13,6 @@ if ($VARS['action'] !== "signout") {
|
||||
dieifnotloggedin();
|
||||
}
|
||||
|
||||
if ((new User($_SESSION['uid']))->hasPermission("ADMIN") == FALSE) {
|
||||
die("You don't have permission to be here.");
|
||||
}
|
||||
|
||||
/**
|
||||
* Redirects back to the page ID in $_POST/$_GET['source'] with the given message ID.
|
||||
* The message will be displayed by the app.
|
||||
|
Loading…
x
Reference in New Issue
Block a user