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