Ghost/core/server/models
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
..
base Increased speed of importer 2018-02-20 09:56:45 +01:00
plugins Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
accesstoken.js
app-field.js
app-setting.js
app.js
client-trusted-domain.js
client.js
index.js
invite.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
permission.js
post.js Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00
refreshtoken.js
role.js Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00
settings.js Improved validation layer (#9427) 2018-02-16 00:49:15 +01:00
subscriber.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
tag.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
user.js Improved validation layer (#9427) 2018-02-16 00:49:15 +01:00
webhook.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00