v1.18.x
barisusakli 10 years ago
parent 4be8f3ec75
commit b919d2ee77

@ -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();
} }

Loading…
Cancel
Save