Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
馃帹 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
- Loading branch information