mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Custom Roles & Permissions
Initial enforcement of custom roles & permissions - only on some pages via GET for now.
This commit is contained in:
@@ -6,7 +6,9 @@ require_once "functions.php";
|
||||
|
||||
require_once "check_login.php";
|
||||
|
||||
validateAdminRole();
|
||||
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