PR comments
This commit is contained in:
parent
f14a236739
commit
fe2fc0eadd
|
@ -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(
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue