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