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

pull/2013/head
ibuler 6 years ago
parent b577c626f7
commit 1fcb272ddc

@ -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

Loading…
Cancel
Save