Fix = vs == role check mistake

This commit is contained in:
Marcus Hill 2022-03-28 21:48:20 +01:00
parent f7252f24e8
commit 0020c5708a
1 changed files with 2 additions and 2 deletions

View File

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