Ghost/core/server/models
Jacob Gable 0dc6dc29a7 Add apps permissable checks in posts and users
Closes #2738

- Re-introduce the TargetModel.permissable interface check in the
regular permission flow path
- Pass loadedPermissions, hasUserPermission and hasAppPermission to
permissable interface to reduce logic necessary
- Refactor recursive call to pass original arguments but with actual
model
- Refactor canThis(this.user) use in api/posts.js to just canThis(this)
2014-05-14 09:22:25 -05:00
..
app.js Sanitize models' attributes/options before passing to bookshelf/knex 2014-05-06 23:02:49 -04:00
appField.js Add new permissions to fixtures 2014-04-16 18:16:10 +02:00
appSetting.js Add new permissions to fixtures 2014-04-16 18:16:10 +02:00
base.js Sanitize models' attributes/options before passing to bookshelf/knex 2014-05-06 23:02:49 -04:00
index.js Consistency in model method naming 2014-05-06 00:36:42 +01:00
permission.js Sanitize models' attributes/options before passing to bookshelf/knex 2014-05-06 23:02:49 -04:00
post.js Add apps permissable checks in posts and users 2014-05-14 09:22:25 -05:00
role.js Sanitize models' attributes/options before passing to bookshelf/knex 2014-05-06 23:02:49 -04:00
session.js Sanitize models' attributes/options before passing to bookshelf/knex 2014-05-06 23:02:49 -04:00
settings.js Add distinct error classes 2014-05-09 12:11:29 +02:00
tag.js Sanitize models' attributes/options before passing to bookshelf/knex 2014-05-06 23:02:49 -04:00
user.js Add apps permissable checks in posts and users 2014-05-14 09:22:25 -05:00