0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/models
Gabor Javorszky 8487dada0b Implement user and related content deletion
Closes #3100

* Introduces `destroyByAuhor`, given a context and an id, it will check if context has permission to delete the user by the id, and then deletes all the content where `author_id` is id, and then deletes the user
* Does multiple checks to make sure user exists
* Added a fixture `posts:mu` that creates 4 users belonging to 4 roles, 50 posts that have authors evenly distributed, 5 tags and all 50 have one tag attached to it, evenly distributed.

Caveats / questions

* Started testing
2014-07-31 03:48:59 +01:00
..
accesstoken.js Server side cleanup 2014-07-14 21:50:12 +01:00
app.js Use bookshelf's model registry plugin 2014-07-13 18:18:25 +01:00
appField.js Use bookshelf's model registry plugin 2014-07-13 18:18:25 +01:00
appSetting.js Use bookshelf's model registry plugin 2014-07-13 18:18:25 +01:00
base.js Fix incorrect error 2014-07-24 10:17:10 +02:00
basetoken.js Server side cleanup 2014-07-14 21:50:12 +01:00
client.js Extending context concept to models 2014-07-18 15:32:56 +01:00
index.js Server side cleanup 2014-07-14 21:50:12 +01:00
permission.js Extending context concept to models 2014-07-18 15:32:56 +01:00
post.js Implement user and related content deletion 2014-07-31 03:48:59 +01:00
refreshtoken.js Server side cleanup 2014-07-14 21:50:12 +01:00
role.js Transfer ownership end point 2014-07-30 17:40:30 +02:00
settings.js Fix lazy loading of settings 2014-07-29 10:43:38 -05:00
tag.js Extending context concept to models 2014-07-18 15:32:56 +01:00
user.js Implement user and related content deletion 2014-07-31 03:48:59 +01:00