diff --git a/functions/edit_user.php b/functions/edit_user.php index 004af8f..b3cccca 100644 --- a/functions/edit_user.php +++ b/functions/edit_user.php @@ -14,7 +14,7 @@ if (!$_SESSION['user']||$_SESSION['user']=="") { die('{"status":"error","message":"Unauthorized request or login session has expired."}'); } -if ($_SESSION['privileged']) { +if (!$_SESSION['privileged']) { die('{"status":"error","message":"Insufficient permission!"}'); }