PR comments
This commit is contained in:
parent
f14a236739
commit
fe2fc0eadd
|
@ -197,7 +197,6 @@ def update_user(user, profile, roles):
|
||||||
:param profile:
|
:param profile:
|
||||||
:param roles:
|
:param roles:
|
||||||
"""
|
"""
|
||||||
log_service.audit_log("TEST", user.name, "Edit role")
|
|
||||||
# if we get an sso user create them an account
|
# if we get an sso user create them an account
|
||||||
if not user:
|
if not user:
|
||||||
user = user_service.create(
|
user = user_service.create(
|
||||||
|
|
|
@ -82,7 +82,7 @@ def update_roles(user, roles):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
user.roles.append(r)
|
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):
|
def get(user_id):
|
||||||
|
|
Loading…
Reference in New Issue