Ghost/core/test/unit/api
kirrg001 e01b61dcf4 Proper error handling for permissible implementations
no issue

- currently if you would like to edit a resource (e.g. post) and you pass an invalid model id, the following happens
  - permission check calls `Post.permissible`
  - the Post could not find the post, but ignored it and returned `userPermissions:true`
  - then the model layer is queried again and figured out that the post does not exist
- A: there is no need to query the model twice
- B: we needed proper error handling for post and role model
2018-02-21 16:59:48 +01:00
..
index_spec.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
utils_spec.js Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00