mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-22 08:06:47 +00:00
perf: Bind user group support str
This commit is contained in:
parent
26420b78f8
commit
db5bf046fc
@ -247,6 +247,9 @@ def bind_user_to_org_role(user):
|
||||
|
||||
|
||||
def bind_user_to_group(org_ids, group_names, user):
|
||||
if isinstance(group_names, str):
|
||||
group_names = [group_names]
|
||||
|
||||
if not isinstance(group_names, list):
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user