mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-09 14:10:40 +01:00
fix #1972
This commit is contained in:
@@ -215,8 +215,8 @@ middleware.isAdmin = function(req, res, next) {
|
||||
} else {
|
||||
res.redirect('/login');
|
||||
}
|
||||
return;
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (res.locals.isAPI) {
|
||||
|
||||
Reference in New Issue
Block a user