Ghost/core/server/models
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
..
base 🎨 refactor the importer (#8473) 2017-05-23 17:18:13 +01:00
plugins 🐛 fix updated_at is null (#8434) 2017-05-12 12:36:26 +01:00
accesstoken.js 🎨 register events in base model (#7560) 2016-10-14 13:37:01 +01:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js 🎨 register events in base model (#7560) 2016-10-14 13:37:01 +01:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js 🎨 😎 config env usages (#7929) 2017-02-03 18:25:39 +00:00
index.js 🎨 Separate invites from user 2016-09-26 11:08:43 +02:00
invite.js 🎨 invites roles table into a field on the invites table (#7705) 2016-11-16 09:33:44 +00:00
permission.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
post.js 🔥 remove posts.markdown field (#8497) 2017-05-31 16:46:29 +02:00
refreshtoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
role.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
settings.js 🎨 settings inconsistency (#8381) 2017-04-24 18:41:00 +01:00
subscriber.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
tag.js 🎨 register events in base model (#7560) 2016-10-14 13:37:01 +01:00
user.js 🎨 Optimise permissble function in user model 2017-07-18 18:20:10 +01:00