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:
parent
5ecd3054b3
commit
9530bead9c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user