Implement new admin check

Uses the new $session_is_admin rather than the old validateAdminRole.
Reverts #1065
This commit is contained in:
wrongecho
2025-01-09 15:11:07 +00:00
parent 77b3eca687
commit fe94036b3a
2 changed files with 5 additions and 6 deletions

View File

@@ -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";