fix(perms): nodes-with-assets 接口添加刷新重构树

pull/5034/head
xinwen 2020-11-18 11:45:01 +08:00 committed by 老广
parent 6ec0b3ad54
commit 1af4fcd381
1 changed files with 1 additions and 0 deletions

View File

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