mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
8487dada0b
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 |
||
---|---|---|
.. | ||
api | ||
apps | ||
config | ||
controllers | ||
data | ||
email-templates | ||
errors | ||
helpers | ||
middleware | ||
models | ||
permissions | ||
routes | ||
storage | ||
utils | ||
views | ||
api.js | ||
filters.js | ||
index.js | ||
mail.js | ||
middleware.js | ||
require-tree.js | ||
update-check.js | ||
xmlrpc.js |