Fix error when attempting to login without permission

This commit is contained in:
Skylar Ittner 2019-01-02 23:59:29 -07:00
parent a8d11a76cd
commit f7f2653378

View File

@ -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.