mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Attach legal document on domain delete
This commit is contained in:
parent
677b4e368d
commit
af4ddec659
1 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,10 @@ module Epp::DomainsHelper
|
|||
|
||||
handle_errors(@domain) and return unless @domain
|
||||
handle_errors(@domain) and return unless @domain.can_be_deleted?
|
||||
|
||||
@domain.attach_legal_document(Epp::EppDomain.parse_legal_document_from_frame(parsed_frame))
|
||||
@domain.save(validate: false)
|
||||
|
||||
handle_errors(@domain) and return unless @domain.destroy
|
||||
|
||||
render '/epp/domains/success'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue