Added Admin validation check on Edit user post thank you for reporting this to us @indevi0us

This commit is contained in:
johnnyq 2022-12-20 16:13:07 -05:00
parent bad026f469
commit 9036fe6853
1 changed files with 2 additions and 0 deletions

View File

@ -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;