mirror of
https://github.com/itflow-org/itflow
synced 2026-03-25 23:05:37 +00:00
Fix = vs == role check mistake
This commit is contained in:
4
post.php
4
post.php
@@ -4151,7 +4151,7 @@ if(isset($_GET['delete_revenue'])){
|
|||||||
|
|
||||||
if(isset($_POST['add_contact'])){
|
if(isset($_POST['add_contact'])){
|
||||||
|
|
||||||
if($session_user_role = 1){
|
if($session_user_role == 1){
|
||||||
$_SESSION['alert_type'] = "danger";
|
$_SESSION['alert_type'] = "danger";
|
||||||
$_SESSION['alert_message'] = "You are not permitted to do that!";
|
$_SESSION['alert_message'] = "You are not permitted to do that!";
|
||||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||||
@@ -4238,7 +4238,7 @@ if(isset($_POST['add_contact'])){
|
|||||||
|
|
||||||
if(isset($_POST['edit_contact'])){
|
if(isset($_POST['edit_contact'])){
|
||||||
|
|
||||||
if($session_user_role = 1){
|
if($session_user_role == 1){
|
||||||
$_SESSION['alert_type'] = "danger";
|
$_SESSION['alert_type'] = "danger";
|
||||||
$_SESSION['alert_message'] = "You are not permitted to do that!";
|
$_SESSION['alert_message'] = "You are not permitted to do that!";
|
||||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user