mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
shorther
This commit is contained in:
@@ -27,8 +27,7 @@ middleware.isAdmin = function(req, res, next) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isAdmin) {
|
if (!isAdmin) {
|
||||||
res.status(403);
|
res.status(403).redirect('/403');
|
||||||
res.redirect('/403');
|
|
||||||
} else {
|
} else {
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user