0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server
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
..
api Implement user and related content deletion 2014-07-31 03:48:59 +01:00
apps This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
config This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
controllers Merge pull request #3438 from hswolff/home-template 2014-07-29 17:10:47 +01:00
data Transfer ownership end point 2014-07-30 17:40:30 +02:00
email-templates Implementing HTML emails 2014-07-29 00:55:14 -04:00
errors Improve importer error messaging 2014-07-29 12:02:18 +01:00
helpers Adding new {{title}} helper 2014-07-29 21:45:56 +01:00
middleware Change refresh token expiry 2014-07-28 15:19:49 +02:00
models Implement user and related content deletion 2014-07-31 03:48:59 +01:00
permissions Permissions Improvements 2014-07-28 06:29:59 +01:00
routes Transfer ownership end point 2014-07-30 17:40:30 +02:00
storage Change refresh token expiry 2014-07-28 15:19:49 +02:00
utils Change refresh token expiry 2014-07-28 15:19:49 +02:00
views Remove inline script from default.hbs 2014-07-21 20:00:54 +02:00
api.js
filters.js
index.js Merge pull request #3367 from jaswilli/issue-3161 2014-07-23 04:47:19 +01:00
mail.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
middleware.js
require-tree.js
update-check.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
xmlrpc.js Add distinct error classes 2014-05-09 12:11:29 +02:00