diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-06 10:16:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 10:16:47 +0200 |
commit | 93f340a4bf35082968118319448905b489b101a3 (patch) | |
tree | a5029b7ea58485c6816ff534c00e7cc75d6818f8 /app/controllers | |
parent | 62782babd08bc2385a604e275bf88af925d137c1 (diff) |
Remove setting that disables account deletes (#17683)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/settings/deletes_controller.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/settings/deletes_controller.rb b/app/controllers/settings/deletes_controller.rb index e0dd5edcb..bb096567a 100644 --- a/app/controllers/settings/deletes_controller.rb +++ b/app/controllers/settings/deletes_controller.rb @@ -4,7 +4,6 @@ class Settings::DeletesController < Settings::BaseController skip_before_action :require_functional! before_action :require_not_suspended! - before_action :check_enabled_deletion def show @confirmation = Form::DeleteConfirmation.new @@ -21,10 +20,6 @@ class Settings::DeletesController < Settings::BaseController private - def check_enabled_deletion - redirect_to root_path unless Setting.open_deletion - end - def resource_params params.require(:form_delete_confirmation).permit(:password, :username) end |