fix: 修复用户组命令过滤规则获取不到的问题

pull/7400/head
Michael Bai 3 years ago committed by Jiangjie.Bai
parent 36054cb64c
commit ae1d419f70

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

Loading…
Cancel
Save