mirror of
https://github.com/itflow-org/itflow
synced 2026-03-24 14:35:38 +00:00
Change manual admin role verification to use the function
This commit is contained in:
@@ -4,12 +4,7 @@ include("config.php");
|
|||||||
include_once("functions.php");
|
include_once("functions.php");
|
||||||
include("check_login.php");
|
include("check_login.php");
|
||||||
|
|
||||||
if($session_user_role != 3){
|
validateAdminRole();
|
||||||
$_SESSION['alert_type'] = "danger";
|
|
||||||
$_SESSION['alert_message'] = "You are not permitted to do that!";
|
|
||||||
header("Location: index.php");
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
include("header.php");
|
include("header.php");
|
||||||
include("top_nav.php");
|
include("top_nav.php");
|
||||||
|
|||||||
Reference in New Issue
Block a user