From 0020c5708ab69c4297fb913aa5b39eadc718503b Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Mon, 28 Mar 2022 21:48:20 +0100 Subject: [PATCH] Fix = vs == role check mistake --- post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index 2fe355c7..dc319ef0 100644 --- a/post.php +++ b/post.php @@ -4151,7 +4151,7 @@ if(isset($_GET['delete_revenue'])){ if(isset($_POST['add_contact'])){ - if($session_user_role = 1){ + if($session_user_role == 1){ $_SESSION['alert_type'] = "danger"; $_SESSION['alert_message'] = "You are not permitted to do that!"; header("Location: " . $_SERVER["HTTP_REFERER"]); @@ -4238,7 +4238,7 @@ if(isset($_POST['add_contact'])){ if(isset($_POST['edit_contact'])){ - if($session_user_role = 1){ + if($session_user_role == 1){ $_SESSION['alert_type'] = "danger"; $_SESSION['alert_message'] = "You are not permitted to do that!"; header("Location: " . $_SERVER["HTTP_REFERER"]);