New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undelete plugin doesn't account for deleted users #253
Comments
I think deleting a user should take precedence over a plugin allowing posts to be undeleted. |
Or should the undelete plugin allow the undeletion of users? |
I don't think the undelete plugin should allow users to be undeleted. Since On Sat, Dec 3, 2011 at 7:54 AM, Michael C. Harris <
|
Probably not at this stage. |
Regardless of what we want to do long term, the bug at hand should be addressed. The options on the table seem to be actually deleting the posts, since the user is gone, or gracefully handling the call to the author. I am in favor of hard deleting the posts, since during user deletion the option of moving the posts to another user is available. If that option isn't chosen, we should assume that the intention is to have those posts burninated. Or, you know, the user didn't see the option to move posts. Thoughts? |
I'd agree. If a user is deleted without reassigning the posts to another user, the assumption should be that all that user's posts should be permanently deleted. |
Agreed. In the long term, we should have a much more robust system for undoing everything, a la gmail, but for now just nuke em. |
Werd on that Michael. Architecting that universal undo system will be an interesting task. |
…user's posts are retrieved, the user is deleted, and then the posts will be deleted. Add a check to the undelete plugin to make sure user_id exists; posts will be deleted as usual if user_id doesn't (as it wouldn't now that users are deleted before posts). This probably isn't ideal, but it should close habari/habari#253.
…user's posts are retrieved, the user is deleted, and then the posts will be deleted. Add a check to the undelete plugin to make sure user_id exists; posts will be deleted as usual if user_id doesn't (as it wouldn't now that users are deleted before posts). This probably isn't ideal, but it should close habari/habari#253.
If one deletes a user with the undelete plugin active, and tell Habari to delete the user's posts, the posts are not permanently deleted. They are just marked as deleted. If one then goes to the manage posts page, one sees the following error for the deleted user's posts:
Notice: Trying to get property of non-object in system/admin/post_items.php line 21
In line 21, Habari is looking for the post author, which no longer exists.
The text was updated successfully, but these errors were encountered: