Remove setting that disables account deletes (#17683)
This commit is contained in:
parent
62782babd0
commit
93f340a4bf
8 changed files with 6 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue