|
|
@@ -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) {
|