Unverified Commit ece8f082 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #2885 from jumpserver/dev_perm

[Update] 用户授权资产树进行排序
parents 64e1e619 c52ea089
......@@ -270,6 +270,7 @@ class UserGrantedNodesWithAssetsAsTreeApi(UserPermissionCacheMixin, ListAPIView)
for asset, system_users in assets.items():
data = parse_asset_to_tree_node(node, asset, system_users)
queryset.append(data)
queryset = sorted(queryset)
return queryset
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment