0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test
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
..
functional Contributor Role (#9315) 2018-02-07 10:46:22 +01:00
integration Renamed comments in importer test 2018-02-20 17:45:56 +01:00
unit Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00
utils Imported nested tags by foreign key 2018-02-20 09:56:45 +01:00
.eslintrc.json ESlint rule: no-multiple-empty-lines 2017-11-06 10:12:18 +00:00
.jshintrc