Change manual admin role verification to use the function

This commit is contained in:
Marcus Hill 2023-01-02 19:10:00 +00:00
parent 7688356a5f
commit 019776f538
1 changed files with 1 additions and 6 deletions

View File

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