Explorar el Código

reverted unintended changes

sou hace 8 años
padre
commit
1f36d6e6d4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);