Merge pull request #3401 from charhate/log_changes
User' object has no attribute 'name'
This commit is contained in:
commit
4459bbef65
|
@ -221,7 +221,7 @@ def update_user(user, profile, roles):
|
||||||
removed_roles.append(ur.name)
|
removed_roles.append(ur.name)
|
||||||
|
|
||||||
if removed_roles:
|
if removed_roles:
|
||||||
log_service.audit_log("unassign_role", user.name, f"Un-assigning roles {removed_roles}")
|
log_service.audit_log("unassign_role", user.username, f"Un-assigning roles {removed_roles}")
|
||||||
# update any changes to the user
|
# update any changes to the user
|
||||||
user_service.update(
|
user_service.update(
|
||||||
user.id,
|
user.id,
|
||||||
|
|
Loading…
Reference in New Issue