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

pull/2013/head
ibuler 2018-11-09 12:33:45 +08:00
parent b577c626f7
commit 1fcb272ddc
1 changed files with 0 additions and 2 deletions

View File

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