3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

fix web access

This commit is contained in:
reality 2014-06-26 22:03:45 +00:00
parent 5ecd3054b3
commit 9530bead9c

View File

@ -28,7 +28,7 @@ var api = function(dbot) {
if(mConfig.requireWebLogin == true) {
if(req.isAuthenticated()) {
if(_.has(mConfig.pageAccess, path)) {
if(_.has(mConfig, 'pageAccess') && _.has(mConfig.pageAccess, path)) {
accessNeeded = mConfig.pageAccess[path];
} else if(!_.isUndefined(mConfig.webAccess)) {
accessNeeded = mConfig.webAccess;