forked from GitHub/dbot
fix web access
This commit is contained in:
parent
5ecd3054b3
commit
9530bead9c
@ -28,7 +28,7 @@ var api = function(dbot) {
|
|||||||
|
|
||||||
if(mConfig.requireWebLogin == true) {
|
if(mConfig.requireWebLogin == true) {
|
||||||
if(req.isAuthenticated()) {
|
if(req.isAuthenticated()) {
|
||||||
if(_.has(mConfig.pageAccess, path)) {
|
if(_.has(mConfig, 'pageAccess') && _.has(mConfig.pageAccess, path)) {
|
||||||
accessNeeded = mConfig.pageAccess[path];
|
accessNeeded = mConfig.pageAccess[path];
|
||||||
} else if(!_.isUndefined(mConfig.webAccess)) {
|
} else if(!_.isUndefined(mConfig.webAccess)) {
|
||||||
accessNeeded = mConfig.webAccess;
|
accessNeeded = mConfig.webAccess;
|
||||||
|
Loading…
Reference in New Issue
Block a user