@ -26,12 +26,12 @@ postsController.redirectToPost = function (req, res, next) {
}, next);
},
function (results, next) {
if (!results.canRead) {
return helpers.notAllowed(req, res);
}
if (!results.path) {
return next();
helpers.redirect(res, results.path);
], next);