From b919d2ee772b19c4fae2818323452bfdd4b02653 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 18 Nov 2014 23:31:17 -0500 Subject: [PATCH] shorther --- src/middleware/admin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); }