From e9f4f7c5b5f73ed80efb2acb26fade59a541c07a Mon Sep 17 00:00:00 2001 From: Guillaume Gautreau Date: Wed, 21 Oct 2020 17:07:56 +0200 Subject: [PATCH] fix(authentication): read public routes from the right variable --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 10a57a4bb..d5a045faa 100644 --- a/src/index.js +++ b/src/index.js @@ -105,7 +105,7 @@ exports.ResourcesRoute = {}; */ exports.ensureAuthenticated = (request, response, next) => { const parsedUrl = url.parse(request.originalUrl); - const forestPublicRoutes = this.PUBLIC_ROUTES.map((route) => `/forest${route}`); + const forestPublicRoutes = PUBLIC_ROUTES.map((route) => `/forest${route}`); if (forestPublicRoutes.includes(parsedUrl.pathname)) { next();