mirror of https://github.com/jumpserver/jumpserver
perf: Bind user group support str
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):
|
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):
|
if not isinstance(group_names, list):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue