Implement new admin check
Uses the new $session_is_admin rather than the old validateAdminRole. Reverts #1065
This commit is contained in:
@@ -6,10 +6,9 @@ require_once "functions.php";
|
||||
|
||||
require_once "check_login.php";
|
||||
|
||||
validateAdminRole();
|
||||
|
||||
// TODO: Change this to enforceAdminPermission();
|
||||
// We can't do this until everyone has the new database fields added in db 1.4.9 on Sept 14th 2024
|
||||
if (!isset($session_is_admin) || !$session_is_admin) {
|
||||
exit(WORDING_ROLECHECK_FAILED . "<br>Tell your admin: Your role does not have admin access.");
|
||||
}
|
||||
|
||||
require_once "header.php";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user