Skip to content

Commit ffe24c3

Browse files
author
thomas
authored
Update webaccess.js
1 parent f00fc3a commit ffe24c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node/hooks/express/webaccess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports.basicAuth = function (req, res, next) {
2020
// Do not require auth for static paths and the API...this could be a bit brittle
2121
if (req.path.match(/^\/(static|javascripts|pluginfw|api)/)) return cb(true);
2222

23-
if (req.path.indexOf('/admin') != 0) {
23+
if (req.path.toLowerCase().indexOf('/admin') != 0) {
2424
if (!settings.requireAuthentication) return cb(true);
2525
if (!settings.requireAuthorization && req.session && req.session.user) return cb(true);
2626
}

0 commit comments

Comments
 (0)