forked from Business/ManagePanel
Fix Business/CommonBugs#1 (expired session logout error)
This commit is contained in:
parent
ae44b2c98c
commit
d2a048e5e8
@ -7,7 +7,9 @@ require_once __DIR__ . "/required.php";
|
|||||||
require_once __DIR__ . "/lib/login.php";
|
require_once __DIR__ . "/lib/login.php";
|
||||||
require_once __DIR__ . "/lib/authlog.php";
|
require_once __DIR__ . "/lib/authlog.php";
|
||||||
|
|
||||||
dieifnotloggedin();
|
if ($VARS['action'] !== "signout") {
|
||||||
|
dieifnotloggedin();
|
||||||
|
}
|
||||||
|
|
||||||
if (account_has_permission($_SESSION['username'], "ADMIN") == FALSE) {
|
if (account_has_permission($_SESSION['username'], "ADMIN") == FALSE) {
|
||||||
die("You don't have permission to be here.");
|
die("You don't have permission to be here.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user