mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-29 21:51:31 +00:00
fix: 将flower放到web服务中;修复账号列表过滤节点的逻辑,获取所有子节点。
This commit is contained in:
@@ -40,7 +40,7 @@ class AccountFilterSet(BaseFilterSet):
|
||||
if not node_id:
|
||||
return qs
|
||||
node = get_object_or_404(Node, pk=node_id)
|
||||
node_ids = node.get_children(with_self=True).values_list('id', flat=True)
|
||||
node_ids = node.get_all_children(with_self=True).values_list('id', flat=True)
|
||||
node_ids = list(node_ids)
|
||||
qs = qs.filter(asset__nodes__in=node_ids)
|
||||
return qs
|
||||
|
||||
Reference in New Issue
Block a user