Skip to content
Permalink
Browse files Browse the repository at this point in the history
Update webaccess.js
  • Loading branch information
thomas committed Apr 6, 2018
1 parent f00fc3a commit ffe24c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/hooks/express/webaccess.js
Expand Up @@ -20,7 +20,7 @@ exports.basicAuth = function (req, res, next) {
// Do not require auth for static paths and the API...this could be a bit brittle
if (req.path.match(/^\/(static|javascripts|pluginfw|api)/)) return cb(true);

if (req.path.indexOf('/admin') != 0) {
if (req.path.toLowerCase().indexOf('/admin') != 0) {
if (!settings.requireAuthentication) return cb(true);
if (!settings.requireAuthorization && req.session && req.session.user) return cb(true);
}
Expand Down

0 comments on commit ffe24c3

Please sign in to comment.