(query, acl)
| 76 | ]; |
| 77 | |
| 78 | function addWriteACL(query, acl) { |
| 79 | const newQuery = _.cloneDeep(query); |
| 80 | //Can't be any existing '_wperm' query, we don't allow client queries on that, no need to $and |
| 81 | newQuery._wperm = { $in: [null, ...acl] }; |
| 82 | return newQuery; |
| 83 | } |
| 84 | |
| 85 | function addReadACL(query, acl) { |
| 86 | const newQuery = _.cloneDeep(query); |