From db5bf046fc87e898b49407f665f017a7001c5cba Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Thu, 19 Sep 2024 11:58:45 +0800 Subject: [PATCH] perf: Bind user group support str --- apps/users/signal_handlers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/users/signal_handlers.py b/apps/users/signal_handlers.py index 91445f799..b8fb37085 100644 --- a/apps/users/signal_handlers.py +++ b/apps/users/signal_handlers.py @@ -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