Просмотр исходного кода

take care of restricted link
- edit comment
- remove debug logginig

NEEDLEMAN3\tatsu 4 лет назад
Родитель
Сommit
d34f89ebce
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      packages/app/src/server/routes/page.js

+ 1 - 2
packages/app/src/server/routes/page.js

@@ -621,9 +621,8 @@ module.exports = function(crowi, app) {
       return res.safeRedirect(urljoin(url.pathname, url.search));
     }
 
-    // Include isEmpty page to handle _notFound or forbidden
+    // Exclude isEmpty page to handle _notFound or forbidden
     const isForbidden = await Page.exists({ path, isEmpty: false });
-    console.log('isForbidden and path', isForbidden, path);
     if (isForbidden) {
       req.isForbidden = true;
       return _notFound(req, res);