Ghost/core/frontend/services/routing/controllers
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
..
channel.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
collection.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
entry.js 🐛 Moved access to an API property (#11967) 2020-06-30 14:46:46 +01:00
index.js Added /unsubscribe/ route to the front-end (#11394) 2019-11-15 09:36:49 +00:00
preview.js Updated edit URLs to use consistent correct URLs 2020-06-01 08:42:11 +01:00
rss.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
static.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
unsubscribe.js Added /unsubscribe/ route to the front-end (#11394) 2019-11-15 09:36:49 +00:00