Sfoglia il codice sorgente

reverted unintended changes

sou 8 anni fa
parent
commit
1f36d6e6d4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/routes/page.js

+ 1 - 1
lib/routes/page.js

@@ -915,7 +915,7 @@ module.exports = function(crowi, app) {
 
     let pageFinder;
     if (pageId) { // prioritized
-      ByIdAndGrantedUser(pageId, req.user);
+      pageFinder = Page.findPageByIdAndGrantedUser(pageId, req.user);
     }
     else if (pagePath) {
       pageFinder = Page.findPage(pagePath, req.user, revisionId);