0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/api
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
..
authentication.js Fix unhandled exception 2014-07-30 18:45:00 +00:00
db.js Improve importer error messaging 2014-07-29 12:02:18 +01:00
index.js Improve handling of users and roles in admin 2014-07-24 14:20:47 +00:00
mail.js Fix Invitations 2014-07-29 15:35:48 +02:00
notifications.js Wire permmissions for notifications, mail and tags 2014-07-17 16:44:09 +01:00
posts.js Adding and renaming permissions 2014-07-17 12:32:25 +01:00
roles.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
slugs.js Update slug API to work with additional types 2014-06-04 05:54:03 +00:00
tags.js Wire permmissions for notifications, mail and tags 2014-07-17 16:44:09 +01:00
themes.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
upload.js Move image upload to API 2014-07-15 12:40:14 +02:00
users.js Implement user and related content deletion 2014-07-31 03:48:59 +01:00
utils.js Improving error handling 2014-07-28 06:30:01 +01:00