mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 18:59:38 +02:00
Story#105747240 - remove legal documents from domain history
This commit is contained in:
parent
a6027ac7d6
commit
b05ce36ea3
2 changed files with 9 additions and 8 deletions
|
@ -51,10 +51,6 @@ class Epp::DomainsController < EppController
|
|||
authorize! :update, @domain, @password
|
||||
begin
|
||||
if @domain.update(params[:parsed_frame], current_user)
|
||||
|
||||
@domain.attach_legal_document(Epp::Domain.parse_legal_document_from_frame(params[:parsed_frame]))
|
||||
@domain.save(validate: false)
|
||||
|
||||
if @domain.epp_pending_update.present?
|
||||
render_epp_response '/epp/domains/success_pending'
|
||||
else
|
||||
|
@ -75,9 +71,6 @@ class Epp::DomainsController < EppController
|
|||
|
||||
handle_errors(@domain) and return unless @domain.can_be_deleted?
|
||||
|
||||
@domain.attach_legal_document(Epp::Domain.parse_legal_document_from_frame(params[:parsed_frame]))
|
||||
@domain.save(validate: false)
|
||||
|
||||
if @domain.epp_destroy(params[:parsed_frame], current_user.id)
|
||||
if @domain.epp_pending_delete.present?
|
||||
render_epp_response '/epp/domains/success_pending'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue