0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
Hannah Wolfe fa91c6c954
🐛 Moved access to an API property (#11967)
closes #11574

- the current implementation of the access property has it frontend only, and wired up only in one place
- this leaves it only available in a handful of places, e.g. can't use it in a post loop or get helper
- the current implementation also fails logically if the html content of the post is blank

This fix moves the behaviour to the API

- this ensures the field is always available no matter what context you are in
- it also updates the logic to use the same membersHasAccess logic as is used to gate the post, so it's always correct

TODO: should reconsider the location of this code
2020-06-30 14:46:46 +01:00
..
adapters Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
api 🐛 Moved access to an API property (#11967) 2020-06-30 14:46:46 +01:00
data Updated settings importer to handle new mapping 2020-06-30 17:38:36 +05:30
lib Fixed populateImageSizes handling of images in subdir setups 2020-06-23 12:47:20 +01:00
models Updated serializers/model layer validation using settings type 2020-06-30 17:38:36 +05:30
public Renamed members ssr + api endpoints 2020-04-30 19:00:37 +01:00
services Cleaned up members & stripe settings (#11957) 2020-06-29 16:22:42 +02:00
translations Fixed grouping error in members CSV importer 2020-06-30 00:22:52 +12:00
views
web Added API endpoints for disconnecting Stripe 2020-06-18 18:42:20 +02:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
index.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
overrides.js
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00