diff --git a/lemur/auth/views.py b/lemur/auth/views.py index fe3b8cf5..5bf80201 100644 --- a/lemur/auth/views.py +++ b/lemur/auth/views.py @@ -197,7 +197,6 @@ def update_user(user, profile, roles): :param profile: :param roles: """ - log_service.audit_log("TEST", user.name, "Edit role") # if we get an sso user create them an account if not user: user = user_service.create( diff --git a/lemur/users/service.py b/lemur/users/service.py index 293288ce..ffc81f5c 100644 --- a/lemur/users/service.py +++ b/lemur/users/service.py @@ -82,7 +82,7 @@ def update_roles(user, roles): break else: user.roles.append(r) - log_service.audit_log("assign_role", ur.name, f"Assigning the role to user {user.username}") + log_service.audit_log("assign_role", r.name, f"Assigning the role to user {user.username}") def get(user_id):