mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: loop
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = function (middleware) {
|
||||
callback();
|
||||
}
|
||||
|
||||
middleware.authenticate = function authenticate(req, res, next) {
|
||||
middleware.authenticate = function middlewareAuthenticate(req, res, next) {
|
||||
authenticate(req, res, next, function () {
|
||||
controllers.helpers.notAllowed(req, res, next);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user