From 019776f538a6b54e8507b7fc97df1b11dd1aab85 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Mon, 2 Jan 2023 19:10:00 +0000 Subject: [PATCH] Change manual admin role verification to use the function --- inc_all_settings.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/inc_all_settings.php b/inc_all_settings.php index d41672b6..ae21679b 100644 --- a/inc_all_settings.php +++ b/inc_all_settings.php @@ -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");