Explorar o código

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

NEEDLEMAN3\tatsu %!s(int64=4) %!d(string=hai) anos
pai
achega
d34f89ebce
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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);