diff --git a/core/frontend/services/routing/controllers/preview.js b/core/frontend/services/routing/controllers/preview.js index ca4624ce4b..c7144d9657 100644 --- a/core/frontend/services/routing/controllers/preview.js +++ b/core/frontend/services/routing/controllers/preview.js @@ -53,6 +53,10 @@ module.exports = function previewController(req, res, next) { return urlUtils.redirect301(res, urlService.getUrlByResourceId(post.id, {withSubdirectory: true})); } + if (res.locals.apiVersion !== 'v0.1' && res.locals.apiVersion !== 'v2') { + post.access = !!post.html; + } + // @TODO: See helpers/secure helpers.secure(req, post);