Browse Source

Merge pull request #6816 from jumpserver/pr@dev@perm_user_node_tree_bug

fix: 修复用户详情获取子节点bug
pull/6818/head
feng626 3 years ago committed by GitHub
parent
commit
1dcc8ff0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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