Browse Source

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

pull/7400/head
Michael Bai 3 years ago committed by Jiangjie.Bai
parent
commit
ae1d419f70
  1. 2
      apps/assets/api/system_user.py

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

Loading…
Cancel
Save