mirror of https://github.com/jumpserver/jumpserver
fix: user permed type tree recurse root node
parent
2994ea6f68
commit
fabee37e9e
|
@ -181,6 +181,8 @@ class UserPermedNodeChildrenWithAssetsAsCategoryTreeApi(BaseUserNodeWithAssetAsT
|
|||
return self.query_asset_util.get_all_assets()
|
||||
|
||||
def _get_tree_nodes_async(self):
|
||||
if self.request.query_params.get('lv') == '0':
|
||||
return [], []
|
||||
if not self.tp or not all(self.tp):
|
||||
nodes = UserPermAssetUtil.get_type_nodes_tree_or_cached(self.user)
|
||||
return nodes, []
|
||||
|
|
Loading…
Reference in New Issue