mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-07 11:30:55 +03:00
e01b61dcf4
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 |
||
---|---|---|
.. | ||
adapters | ||
api | ||
apps | ||
config | ||
controllers | ||
data | ||
helpers | ||
lib | ||
models | ||
public | ||
services | ||
translations | ||
views | ||
web | ||
analytics-events.js | ||
filters.js | ||
ghost-server.js | ||
index.js | ||
overrides.js | ||
update-check.js |