Commit fe52c57a authored by ibuler's avatar ibuler

[Bugfix] 修复授权uitls的错误

parent f8384973
...@@ -197,10 +197,8 @@ class AssetPermissionUtil: ...@@ -197,10 +197,8 @@ class AssetPermissionUtil:
in_node = True in_node = True
nodes[node][asset].update(_system_users) nodes[node][asset].update(_system_users)
if not in_node: if not in_node:
if unnode in nodes: nodes[unnode] = defaultdict(set)
nodes[unnode][asset].update(_system_users) nodes[unnode][asset].update(_system_users)
else:
nodes[unnode][asset] = _system_users
return nodes return nodes
@classmethod @classmethod
......
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