mirror of https://github.com/jumpserver/jumpserver
fix: 修复用户组命令过滤规则获取不到的问题
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…
Reference in New Issue