mirror of https://github.com/itflow-org/itflow
Fix = vs == role check mistake
This commit is contained in:
parent
f7252f24e8
commit
0020c5708a
4
post.php
4
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"]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue