diff --git a/src/middleware/admin.js b/src/middleware/admin.js index 8ac5125213..6a48282865 100644 --- a/src/middleware/admin.js +++ b/src/middleware/admin.js @@ -27,8 +27,7 @@ middleware.isAdmin = function(req, res, next) { } if (!isAdmin) { - res.status(403); - res.redirect('/403'); + res.status(403).redirect('/403'); } else { next(); }