mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
🐛 Fixed visibility of the post history feature
We had side stepped the existing checks of lexical and the feature flag when checking if a published post was sent as an email. This takes into account the existing checks to make sure the feature isn't leaked without the flag
This commit is contained in:
parent
e41d9fedd8
commit
ecb90c88ca
@ -150,7 +150,7 @@ export default class GhPostSettingsMenu extends Component {
|
||||
&& this.post.emailOnly === false;
|
||||
|
||||
if (this.post.isPublished === true) {
|
||||
showPostHistory = this.post.hasEmail === false;
|
||||
return showPostHistory && this.post.hasEmail === false;
|
||||
}
|
||||
|
||||
return showPostHistory;
|
||||
|
Loading…
Reference in New Issue
Block a user