0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/models
kirrg001 02abe3862e Use bookshelf-relations for Permission model: roles
refs https://github.com/TryGhost/Ghost/pull/9592

- we add bookshelf-relations step by step if we need it
- with https://github.com/TryGhost/Ghost/pull/9592 we have rewritten the test env to use Bookshelf
  - this is important for our new url service
  - because the service is listening on model updates and updates the urls based on the model events
- so with moving to Bookshelf, we need any easy way to add relations
  - the test env inserts test fixtures
  - it adds permissions and each permission get's roles attached
  - `models.Permission.add({roles: [...]})
2018-04-25 12:27:39 +02:00
..
base Use bookshelf-relations for Permission model: roles 2018-04-25 12:27:39 +02:00
plugins Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
relations 🐛 Fixed importer bug: can't resolve authors relation 2018-04-10 01:10:06 +02:00
accesstoken.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
app-field.js
app-setting.js
app.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
client-trusted-domain.js
client.js 🎨 😎 config env usages (#7929) 2017-02-03 18:25:39 +00:00
index.js Webhooks support for subscriber events (#9230) 2017-11-21 15:43:14 +00:00
invite.js Added unit tests for models.Invite.add 2018-04-25 11:56:45 +02:00
permission.js Use bookshelf-relations for Permission model: roles 2018-04-25 12:27:39 +02:00
post.js Fetch relations by default when insert/updating posts (#9568) 2018-04-15 12:12:20 +02:00
refreshtoken.js
role.js Proper error handling for permissible implementations 2018-02-21 16:59:48 +01:00
settings.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
subscriber.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
tag.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
user.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00
webhook.js Fixed model events and transactions (#9524) 2018-04-06 18:19:45 +02:00