perf: Bind user group support str

pull/14198/head
feng 2024-09-19 11:58:45 +08:00
parent 26420b78f8
commit db5bf046fc
1 changed files with 3 additions and 0 deletions

View File

@ -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