mirror of https://github.com/jumpserver/jumpserver
fix(perms): nodes-with-assets 接口添加刷新重构树
parent
6ec0b3ad54
commit
1af4fcd381
|
@ -131,6 +131,7 @@ class MyGrantedNodesWithAssetsAsTreeApi(SerializeToTreeNodeMixin, ListAPIView):
|
|||
if system_user_id:
|
||||
self.add_node_filtered_by_system_user(data, user, asset_perms_id)
|
||||
else:
|
||||
rebuild_user_tree_if_need(request, user)
|
||||
all_nodes = get_user_granted_nodes_list_via_mapping_node(user)
|
||||
data.extend(self.serialize_nodes(all_nodes, with_asset_amount=True))
|
||||
|
||||
|
|
Loading…
Reference in New Issue