Taichi Masuyama %!s(int64=4) %!d(string=hai) anos
pai
achega
d18e5ff3d9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/app/src/server/models/page.ts

+ 1 - 0
packages/app/src/server/models/page.ts

@@ -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: '/' },
         ],
         ],