Ghost/core/frontend/services/routing
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
..
config 🐛 Fixed /edit route redirect for tag taxonomies 2020-04-16 21:23:38 +12:00
controllers 🐛 Moved access to an API property (#11967) 2020-06-30 14:46:46 +01:00
helpers Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
middlewares Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
bootstrap.js Reordered routes to load taxonomies last 2020-06-29 17:45:47 +01:00
CollectionRouter.js Renamed settings keys active_timezone to timezone 2020-06-24 14:11:20 +12:00
index.js Moved settings dynamicRouting to routing.settings 2019-06-21 16:34:17 +02:00
ParentRouter.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
PreviewRouter.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
registry.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
RSSRouter.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
settings.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
StaticPagesRouter.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
StaticRoutesRouter.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
TaxonomyRouter.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
UnsubscribeRouter.js Added /unsubscribe/ route to the front-end (#11394) 2019-11-15 09:36:49 +00:00