0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core
kirrg001 522bd02224 🎨 Optimise permissble function in user model
no issue

- if you destroy a user with an unknown user id, Ghost would crash
- because `userModel.hasRole` is undefined

- there is actually a bigger underlying architectual problem:
   - the permission check should rely on an existing user
   - so there should be a first api layer, which 1. validates (this code exists) and 2. ensures that requested database id's exist
   - but this requires a bigger refactoring
2017-07-18 18:20:10 +01:00
..
client@fa921f8367 Updated Ghost-Admin to 1.0.0-rc.1 2017-07-11 16:41:08 +02:00
server 🎨 Optimise permissble function in user model 2017-07-18 18:20:10 +01:00
test Update welcome post fixture (#8672) 2017-07-10 20:38:03 +07:00
index.js