From 646cdd6bc134e298b54df3a600bf8e64f96e75ad Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Wed, 12 Mar 2014 10:20:45 +1100 Subject: [PATCH] Fixed bug: Not adding interviewer to htgroup when chaning username --- admin/operatorlist.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/operatorlist.php b/admin/operatorlist.php index 415640b6..002466f1 100644 --- a/admin/operatorlist.php +++ b/admin/operatorlist.php @@ -108,6 +108,9 @@ if (isset($_POST['submit'])) $htp->deleteUser($_POST["existing_username"]); $htp->deleteUser($_POST["username"]); $htp->addUser($_POST["username"],$_POST["password"]); + $htg = New Htgroup(HTGROUP_PATH); + $htg->deleteUserFromGroup($_POST["existing_username"],HTGROUP_INTERVIEWER); + $htg->addUserToGroup($_POST["username"],HTGROUP_INTERVIEWER); } $msg = T_("Successfully updated user");