Ghost/core/test/integration
Katharina Irrgang 506a0c3e9e 🔥 Removed certain fields from public user response (#9069)
no issue 

* Comment current state of toJSON for user model

- currently the user model does not return the email if the context is app/external/public OR if there is no context object at all
- i am not 100% sure why if there is no context we should not return the email address
- i think no context means internal access
- maybe change this condition cc @ErisDS

* Extend our access rules plugin

- we already have a instance method to determine which context is used
- this relies on passing options into `.forge` - but we almost never pass the context into the forge call
  - added @TODO
- provide another static method to determine the context based on the options object passed from outside

* Use the new static function for existing code

* Add comment where the external context is used

* Remove certain fields from a public request (User model only)

* Tests: support `checkResponse` for a public request

- start with an optional option pattern
- i would love to get rid of checkResponse('user', null, null, null)
- still support old style for now
- a resoure can define the default response fields and public response fields

* Tests: adapt public api test

* Tests: adapt api user test

- use new option pattern for `checkResponse`
- eww null, null, null, null....

* Revert the usage of the access rules plugin
2017-09-28 14:00:52 +01:00
..
api 🔥 Removed certain fields from public user response (#9069) 2017-09-28 14:00:52 +01:00
data/importer/importers Tests: Fix one more random failure (#9004) 2017-09-12 16:51:40 +01:00
model Custom Post Excerpt Feature (#8792) 2017-08-01 12:39:34 +04:00
export_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
migration_spec.js Allow Upload/Download of redirects.json (#9029) 2017-09-21 16:01:03 +01:00
update_check_spec.js 🐛 Fixed persistent upgrade notifications showing for the currently installed version (#9048) 2017-09-25 12:22:56 +01:00