mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
Fixed post preview access
flag in 3.0 (#11275)
no-issue The access flag was not being set in the preview controller which was causing 3.0 Member themes to incorrectly hide the content
This commit is contained in:
parent
2dc6f30f11
commit
638b4fc2f2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user