mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
marathon bugfixing with @barisusakli re: #1788
This commit is contained in:
@@ -26,7 +26,7 @@ middleware.authenticate = function(req, res, next) {
|
||||
if (res.locals.isAPI) {
|
||||
return res.json(403, 'not-allowed');
|
||||
} else {
|
||||
return res.redirect('403');
|
||||
return res.redirect(nconf.get('url') + '/403');
|
||||
}
|
||||
} else {
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user