Sotaro KARASAWA 10 лет назад
Родитель
Сommit
6c9b1a3c33
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/routes/page.js

+ 1 - 1
lib/routes/page.js

@@ -107,7 +107,6 @@ module.exports = function(crowi, app) {
         res.redirect(encodeURI(path));
         return ;
       }
-      debug('Page found', pageData._id, pageData.path);
 
       if (err == Page.PAGE_GRANT_ERROR) {
         debug('PAGE_GRANT_ERROR');
@@ -115,6 +114,7 @@ module.exports = function(crowi, app) {
       }
 
       if (pageData) {
+        debug('Page found', pageData._id, pageData.path);
         pageData.seen(req.user, function(err, data) {
           return renderPage(data, req, res);
         });