From ae1d419f707244201e6ccbcb6611c5fdaa35315d Mon Sep 17 00:00:00 2001 From: Michael Bai Date: Wed, 15 Dec 2021 16:33:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=BB=84=E5=91=BD=E4=BB=A4=E8=BF=87=E6=BB=A4=E8=A7=84=E5=88=99?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/system_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/api/system_user.py b/apps/assets/api/system_user.py index 912630b79..cf61be658 100644 --- a/apps/assets/api/system_user.py +++ b/apps/assets/api/system_user.py @@ -217,7 +217,7 @@ class SystemUserCommandFilterRuleListApi(generics.ListAPIView): q = Q() if user: q |= Q(users=user) - if user_group: + if user_groups: q |= Q(user_groups__in=set(user_groups)) if system_user: q |= Q(system_users=system_user)