0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed email recipient list in publish menu not showing selected tiers

refs https://github.com/TryGhost/Team/issues/1032#issuecomment-918554923

- the email recipient menu in publish menu was not correctly translating the tiers in specific tier selection when matching post level access
- in case of specific tier, visibility type on post is `filter` and the visibility filter data is in a separate field on post - `visibilityFilter`, so it got missed
This commit is contained in:
Rishabh 2021-09-14 13:09:11 +05:30
parent 06a8ca2b83
commit 3cec49e689

View file

@ -169,6 +169,10 @@ export default Component.extend({
return 'status:-free';
}
if (this.post.visibility === 'filter') {
return this.post.visibilityFilter;
}
return this.post.visibility;
}