|
@@ -495,6 +495,7 @@ schema.statics.createEmptyPagesByPaths = async function(paths: string[], user: a
|
|
|
aggregationPipeline.push({
|
|
aggregationPipeline.push({
|
|
|
$match: {
|
|
$match: {
|
|
|
$or: [
|
|
$or: [
|
|
|
|
|
+ { grant: GRANT_PUBLIC },
|
|
|
{ parent: { $ne: null } },
|
|
{ parent: { $ne: null } },
|
|
|
{ path: '/' },
|
|
{ path: '/' },
|
|
|
],
|
|
],
|