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

pull/7400/head
Michael Bai 2021-12-15 16:33:06 +08:00 committed by Jiangjie.Bai
parent 36054cb64c
commit ae1d419f70
1 changed files with 1 additions and 1 deletions

View File

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