Don't filter available projects on is_private=True.

This commit is contained in:
2016-09-29 18:54:50 +02:00
parent 0067157251
commit 19d54b7fd6

View File

@@ -402,8 +402,7 @@ class PILLAR_OT_projects(async_loop.AsyncModalOperatorMixin,
projects_shared = await pillar_call(
pillarsdk.Project.all,
{'where': {'user': {'$ne': user_id},
'permissions.groups.group': {'$in': db_user.groups},
'is_private': True},
'permissions.groups.group': {'$in': db_user.groups}},
'sort': '-_created',
'projection': {'_id': True,
'name': True},