Commit c529061e authored by ibuler's avatar ibuler

[Bugfix] 修复授权uitls的错误

parent fe52c57a
......@@ -188,6 +188,7 @@ class AssetPermissionUtil:
children = _node.get_family()
for node in children:
nodes[node] = defaultdict(set)
nodes[unnode] = defaultdict(set)
_assets = cls.get_user_assets(user)
for asset, _system_users in _assets.items():
_nodes = asset.get_nodes()
......@@ -197,7 +198,6 @@ class AssetPermissionUtil:
in_node = True
nodes[node][asset].update(_system_users)
if not in_node:
nodes[unnode] = defaultdict(set)
nodes[unnode][asset].update(_system_users)
return nodes
......
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