User' object has no attribute 'name'

This commit is contained in:
sayali 2021-02-03 12:31:15 -08:00
parent fae8a3c537
commit d9569a67ab
1 changed files with 1 additions and 1 deletions

View File

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