From 1452d48c0e934d3e1d8ef0ecbac24db7505d9f1b Mon Sep 17 00:00:00 2001 From: Henry Gross-Hellsen <6283258+cowpod@users.noreply.github.com> Date: Mon, 11 Nov 2024 16:39:25 -0800 Subject: [PATCH] Update edit_user.php --- functions/edit_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!"}'); }