Commit 1fcb272d authored by ibuler's avatar ibuler

[Bugfix] 修复coco tree失败的问题,不应该过滤没有asset的node

parent b577c626
......@@ -172,8 +172,6 @@ class UserGrantedNodesWithAssetsApi(AssetsFilterMixin, ListAPIView):
system_users_granted = [s for s in v if s.protocol == k.protocol]
k.system_users_granted = system_users_granted
node.assets_granted = assets
if not node.assets_granted:
continue
queryset.append(node)
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