Browse Source

fix: 修复用户详情获取子节点bug

pull/6816/head
feng626 3 years ago
parent
commit
11a9a49bf8
  1. 2
      apps/perms/utils/asset/user_permission.py

2
apps/perms/utils/asset/user_permission.py

@ -549,7 +549,7 @@ class UserGrantedNodesQueryUtils(UserGrantedUtilsBase):
return self.get_top_level_nodes()
nodes = PermNode.objects.none()
if key == PermNode.FAVORITE_NODE_KEY:
if key in [PermNode.FAVORITE_NODE_KEY, PermNode.UNGROUPED_NODE_KEY]:
return nodes
node = PermNode.objects.get(key=key)

Loading…
Cancel
Save