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

[v3.1] Allow to extend user deletion logic #4472

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jul 26, 2022

Same as #4471 but for v3.1

Currently we restrict to delete a user with an exception if
the user has any orders. Some businesses might want to
allow to delete users with incomplete orders.

This allows to override the can_be_deleted? method in the user
class.

Refs solidusio#3138
@tvdeyen tvdeyen merged commit ddc39e6 into solidusio:v3.1 Aug 4, 2022
@tvdeyen tvdeyen deleted the v3.1-allow-to-destroy-user-with-incomplete-orders branch August 4, 2022 19:14
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.

2 participants