mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 16:18:49 +01:00
Bug fix for #3864 searching archived cards and add new operators for organizations and teams
This commit is contained in:
parent
6ef612d04e
commit
aa0dee1fba
8 changed files with 89 additions and 6 deletions
|
|
@ -1501,8 +1501,8 @@ Boards.userBoards = (
|
|||
selector.$or = [
|
||||
{ permission: 'public' },
|
||||
{ members: { $elemMatch: { userId, isActive: true } } },
|
||||
{ 'orgs.orgId': { $in: user.orgIds() } },
|
||||
{ 'teams.teamId': { $in : user.teamIds() } },
|
||||
{ orgs: { $elemMatch: { orgId: { $in: user.orgIds() }, isActive: true } } },
|
||||
{ teams: { $elemMatch: { teamId: { $in: user.teamIds() }, isActive: true } } },
|
||||
];
|
||||
|
||||
return Boards.find(selector, projection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue