Jelajahi Sumber

reverted unintended changes

sou 7 tahun lalu
induk
melakukan
5ac049f631
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      lib/routes/page.js

+ 1 - 1
lib/routes/page.js

@@ -573,6 +573,7 @@ module.exports = function(crowi, app) {
     var isMarkdown = req.params[0].match(/.+\.md$/) || false;
 
     res.locals.path = path;
+
     Page.findPage(path, req.user, req.query.revision)
     .then(function(page) {
       debug('Page found', page._id, page.path);
@@ -914,7 +915,6 @@ module.exports = function(crowi, app) {
 
     let pageFinder;
     if (pageId) { // prioritized
-      pageFinder = Page.
       ByIdAndGrantedUser(pageId, req.user);
     }
     else if (pagePath) {