Procházet zdrojové kódy

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

NEEDLEMAN3\tatsu před 4 roky
rodič
revize
d34f89ebce
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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);