diff --git a/modules/web/web.js b/modules/web/web.js index 7bc2eb1..b6c3bf6 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -170,15 +170,10 @@ var webInterface = function(dbot) { allowedUsers = _.union(allowedUsers, dbot.config.power_users); } - console.log(module.config.webAccess); - console.log(allowedUsers); - if(_.include(allowedUsers, req.user.primaryNick)) { return next(); } else { - res.render('index', { - 'message': 'You don\'t have access to this module.' - }); + res.redirect('index'); } } else { return next();