Ghost/test
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
..
api-acceptance Added migration to add settings.{group,flags} columns (#11951) 2020-06-24 11:58:15 +01:00
frontend-acceptance 🐛 Fixed private blogging exposing 404 and robots (#11922) 2020-06-16 11:42:32 +01:00
regression 🐛 Moved access to an API property (#11967) 2020-06-30 14:46:46 +01:00
unit 🐛 Moved access to an API property (#11967) 2020-06-30 14:46:46 +01:00
utils Updated serializers/model layer validation using settings type 2020-06-30 17:38:36 +05:30
.eslintignore
.eslintrc.json Fixed linting error 2020-04-17 11:32:29 +01:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00