mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Use controller on update user call
This commit is contained in:
parent
2f65971261
commit
4eb15db30f
@ -280,7 +280,7 @@ class ApiUsersUserIndexHandler(BaseApiHandler):
|
||||
if key == "password":
|
||||
value = self.helper.encode_pass(value)
|
||||
setattr(user_obj, key, value)
|
||||
user_obj.save()
|
||||
self.controller.users.update_user(auth_data[4]["user_id"], data)
|
||||
|
||||
self.controller.management.add_to_audit_log(
|
||||
user["user_id"],
|
||||
|
Loading…
Reference in New Issue
Block a user