0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/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
..
authentication.js Improved forwarding model options in the API layer (#9380) 2018-01-09 13:26:09 +01:00
clients.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
configuration.js Resurrect the old alpha Koenig editor (#9277) 2018-01-18 15:43:22 +00:00
db.js Backup endpoint improvements (#9365) 2018-01-11 16:03:21 +01:00
index.js Moved utils/url.js to UrlService 2017-12-11 20:05:33 +01:00
invites.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
mail.js Removed html usage in error messages (#9444) 2018-02-07 09:35:48 +01:00
notifications.js 🐛 Fixed showing old release notifications in the about page 2018-01-18 12:19:55 +01:00
posts.js Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00
redirects.js Moved validateRedirects helper to data/validation 2017-12-14 11:55:10 +01:00
roles.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
schedules.js Moved zip folder, read csv and package-json to lib/fs 2017-12-14 22:07:53 +01:00
settings.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
slack.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
slugs.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
subscribers.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
tags.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
themes.js 🐛 Reload translations if active theme get's overridden (#9392) 2018-01-12 09:19:28 +00:00
upload.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
users.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
utils.js Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00
webhooks.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00