Explorar o código

Merge pull request #5774 from weseek/fix/switch-v4-v5-process-fix

fix: Not create unnecessary empty pages when ancestors are public
Haku Mizuki %!s(int64=4) %!d(string=hai) anos
pai
achega
d48d56fd93
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({
       $match: {
         $or: [
+          { grant: GRANT_PUBLIC },
           { parent: { $ne: null } },
           { path: '/' },
         ],