Browse Source

adjust comment

itizawa 5 years ago
parent
commit
3b68890e0b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/server/models/page.js

+ 2 - 2
src/server/models/page.js

@@ -715,8 +715,8 @@ module.exports = function(crowi) {
 
 
     const { pages } = await findListFromBuilderAndViewer(builder, user, false, option);
     const { pages } = await findListFromBuilderAndViewer(builder, user, false, option);
 
 
-    // add targetPage if 'grant' is GRANT_RESTRICTED
-    // because findListFromBuilderAndViewer excludes GRANT_RESTRICTED pages
+    // add page if 'grant' is GRANT_RESTRICTED
+    // because addConditionToListWithDescendants excludes GRANT_RESTRICTED pages
     if (page.grant === GRANT_RESTRICTED) {
     if (page.grant === GRANT_RESTRICTED) {
       pages.push(page);
       pages.push(page);
     }
     }