mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-27 15:27:11 +00:00
[Bugfix] 修复luna不显示多组织资产的问题
This commit is contained in:
parent
4d26fd8b56
commit
87abe63a20
@ -417,8 +417,7 @@ class UserGrantedNodeChildrenApi(ListAPIView):
|
|||||||
|
|
||||||
queryset = []
|
queryset = []
|
||||||
if node_id and node_id in [str(node.id) for node in nodes_granted]:
|
if node_id and node_id in [str(node.id) for node in nodes_granted]:
|
||||||
node = [node for node in nodes_granted if str(node.id) == node_id][
|
node = [node for node in nodes_granted if str(node.id) == node_id][0]
|
||||||
0]
|
|
||||||
elif len(root_nodes) == 1:
|
elif len(root_nodes) == 1:
|
||||||
node = root_nodes[0]
|
node = root_nodes[0]
|
||||||
node.assets_amount = len(nodes_granted[node])
|
node.assets_amount = len(nodes_granted[node])
|
||||||
|
Loading…
Reference in New Issue
Block a user