Merge pull request #3401 from charhate/log_changes

User' object has no attribute 'name'
This commit is contained in:
charhate 2021-02-03 12:40:41 -08:00 committed by GitHub
commit 4459bbef65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
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
user_service.update(
user.id,