mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
refs https://github.com/TryGhost/Team/issues/1004 The `tiers` column for a post/page only contained data if its visibility is set to `tiers`, otherwise its empty. This is because originally the purpose of `tiers` column on `post` was to capture specific tiers with access to post. The best way to ensure a consistent behavior for `tiers` column data on post is to update it to always contain list of all `tiers` that have access to post, and not just when the visibility is `tiers`. This means the value is set to all tiers when visibility is one of public|members, and only paid tiers when visibility is `paid`. This change also allows on frontend to get all relevant `tiers` information for a post locally within post context instead of relying on additional information from outside. This change - - updates the output serializer for post/page to add all desired tiers manually in case of visibility is not `tiers` - updates tests |
||
---|---|---|
.. | ||
utils | ||
actions.js | ||
authentication.js | ||
authors-public.js | ||
config.js | ||
custom-theme-settings.js | ||
db.js | ||
email-post.js | ||
email-preview.js | ||
email.js | ||
files.js | ||
identities.js | ||
images.js | ||
index.js | ||
integrations.js | ||
invites.js | ||
labels.js | ||
mail.js | ||
media.js | ||
members.js | ||
memberSigninUrls.js | ||
membersStripeConnect.js | ||
notifications.js | ||
oembed.js | ||
offers.js | ||
pages-public.js | ||
pages.js | ||
posts-public.js | ||
posts.js | ||
preview.js | ||
products-public.js | ||
products.js | ||
redirects.js | ||
roles.js | ||
schedules.js | ||
session.js | ||
settings-public.js | ||
settings.js | ||
site.js | ||
slack.js | ||
slugs.js | ||
snippets.js | ||
tags-public.js | ||
tags.js | ||
themes.js | ||
tiers-public.js | ||
tiers.js | ||
users.js | ||
webhooks.js |