Don't filter available projects on is_private=True.
This commit is contained in:
parent
0067157251
commit
19d54b7fd6
@ -402,8 +402,7 @@ class PILLAR_OT_projects(async_loop.AsyncModalOperatorMixin,
|
|||||||
projects_shared = await pillar_call(
|
projects_shared = await pillar_call(
|
||||||
pillarsdk.Project.all,
|
pillarsdk.Project.all,
|
||||||
{'where': {'user': {'$ne': user_id},
|
{'where': {'user': {'$ne': user_id},
|
||||||
'permissions.groups.group': {'$in': db_user.groups},
|
'permissions.groups.group': {'$in': db_user.groups}},
|
||||||
'is_private': True},
|
|
||||||
'sort': '-_created',
|
'sort': '-_created',
|
||||||
'projection': {'_id': True,
|
'projection': {'_id': True,
|
||||||
'name': True},
|
'name': True},
|
||||||
|
Reference in New Issue
Block a user