Skip to content
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

anyway we can enable a force delete even on an Admin? #2137

Closed
wants to merge 1 commit into from
Closed

anyway we can enable a force delete even on an Admin? #2137

wants to merge 1 commit into from

Conversation

akhoury
Copy link
Member

@akhoury akhoury commented Sep 24, 2014

The reason that's needed is for the importer, to be able to purge all categories and delete all users (except the original admin) and restart the process.

Also, in User.delete any reason deletePosts and deleteTopics occur after deleteAccount ? I switched them, I figured if an admin is trying to delete another admin, if should throw the error before emptying all of its posts and topics, no ?

The reason that's needed is for the importer, to be able to purge all categories and delete all users (except the original admin)

Also, in `User.delete` any reason `deletePosts` and `deleteTopics` occur after `deleteAccount` ?  I switched them, I figured if an admin is trying to delete another admin, if should throw the error before emptying all of its posts and topics, no ?
@barisusakli
Copy link
Member

I think you meant before deleteAccount, also I think moving that check higher up is the way to go. So that the importer can just call User.delete.

barisusakli added a commit that referenced this pull request Sep 24, 2014
@barisusakli
Copy link
Member

Check out my commit does that solve your problem?

@akhoury
Copy link
Member Author

akhoury commented Sep 24, 2014

that'll do it! thanks

@akhoury akhoury closed this Sep 24, 2014
@akhoury akhoury deleted the patch-3 branch September 24, 2014 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants