- Modified privacywrite query with graphLookup:
$graphLookup: {
from: "projects",
startWith: "$id_main_project",
connectFromField: "id_main_project",
connectToField: "_id",
as: "ris",
restrictSearchWithMatch: { $or: [{ privacyread: server_constants.Privacy.all }, { userId: userId }] }
}
},
{ $match: { "ris.privacyread": { $exists: true } } },
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = Object.freeze({
|
||||
|
||||
|
||||
LIST_END: '10000000',
|
||||
LIST_START: '0',
|
||||
LIST_START: null,
|
||||
|
||||
Privacy: {
|
||||
all: 'all',
|
||||
|
||||
Reference in New Issue
Block a user