diff --git a/index.js b/index.js index 68d6957..098149a 100644 --- a/index.js +++ b/index.js @@ -57,6 +57,7 @@ global.checkACL = function(req, perm) { app.use((req, res, next) => { if (req.session.user) return next(); + if (req.path === "/") return next(); if (req.path === '/login' || req.path === '/login/') return next(); if (req.path === '/logout' || req.path === '/logout/') return next(); if (req.path.startsWith('/public/') || req.path === '/favicon.ico' || req.path === '/robots.txt') return next();