diff --git a/src/controllers/posts.js b/src/controllers/posts.js index 4f906fb0ba..5f41d6a9d9 100644 --- a/src/controllers/posts.js +++ b/src/controllers/posts.js @@ -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(); } + if (!results.canRead) { + return helpers.notAllowed(req, res); + } helpers.redirect(res, results.path); }, ], next);