From 9036fe6853f56226ef3ce6cdaa871d71843afb31 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 20 Dec 2022 16:13:07 -0500 Subject: [PATCH] Added Admin validation check on Edit user post thank you for reporting this to us @indevi0us --- post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/post.php b/post.php index eb97e1f6..f5476dc3 100644 --- a/post.php +++ b/post.php @@ -143,6 +143,8 @@ if(isset($_POST['add_user'])){ if(isset($_POST['edit_user'])){ + validateAdminRole(); + if($session_user_role != 3 && $_POST['user_id'] !== $session_user_id){ $_SESSION['alert_type'] = "error"; $_SESSION['alert_message'] = WORDING_ROLECHECK_FAILED;