mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
111864739-catcher_for_all_domain_methods
This commit is contained in:
parent
2430bfebf2
commit
7f9e1e0c9c
1 changed files with 12 additions and 5 deletions
|
@ -194,7 +194,10 @@ class Epp::Domain < Domain
|
||||||
end
|
end
|
||||||
|
|
||||||
at[:dnskeys_attributes] = dnskeys_attrs(dnskey_frame, action)
|
at[:dnskeys_attributes] = dnskeys_attrs(dnskey_frame, action)
|
||||||
at[:legal_documents_attributes] = legal_document_from(frame)
|
|
||||||
|
doc = legal_document_from(frame)
|
||||||
|
self.legal_document_id = doc.id if doc.id
|
||||||
|
at[:legal_documents_attributes] = doc
|
||||||
at
|
at
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
# rubocop: enable Metrics/PerceivedComplexity
|
||||||
|
@ -476,7 +479,7 @@ class Epp::Domain < Domain
|
||||||
|
|
||||||
if doc = attach_legal_document(Epp::Domain.parse_legal_document_from_frame(frame))
|
if doc = attach_legal_document(Epp::Domain.parse_legal_document_from_frame(frame))
|
||||||
frame.css("legalDocument").first.content = doc.path if doc && doc.persisted?
|
frame.css("legalDocument").first.content = doc.path if doc && doc.persisted?
|
||||||
self.legal_document_id = doc.id
|
self.legal_document_id = doc.id if doc.id
|
||||||
end
|
end
|
||||||
|
|
||||||
at_add = attrs_from(frame.css('add'), current_user, 'add')
|
at_add = attrs_from(frame.css('add'), current_user, 'add')
|
||||||
|
@ -546,6 +549,7 @@ class Epp::Domain < Domain
|
||||||
|
|
||||||
if doc = attach_legal_document(Epp::Domain.parse_legal_document_from_frame(frame))
|
if doc = attach_legal_document(Epp::Domain.parse_legal_document_from_frame(frame))
|
||||||
frame.css("legalDocument").first.content = doc.path if doc && doc.persisted?
|
frame.css("legalDocument").first.content = doc.path if doc && doc.persisted?
|
||||||
|
self.legal_document_id = doc.id if doc.id
|
||||||
end
|
end
|
||||||
|
|
||||||
if Setting.request_confirmation_on_domain_deletion_enabled &&
|
if Setting.request_confirmation_on_domain_deletion_enabled &&
|
||||||
|
@ -698,7 +702,8 @@ class Epp::Domain < Domain
|
||||||
self.registrar = current_user.registrar
|
self.registrar = current_user.registrar
|
||||||
end
|
end
|
||||||
|
|
||||||
attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
doc = attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
||||||
|
self.legal_document_id = doc.id if doc.id
|
||||||
save!(validate: false)
|
save!(validate: false)
|
||||||
|
|
||||||
return dt
|
return dt
|
||||||
|
@ -726,7 +731,8 @@ class Epp::Domain < Domain
|
||||||
generate_auth_info
|
generate_auth_info
|
||||||
self.registrar = pt.transfer_to
|
self.registrar = pt.transfer_to
|
||||||
|
|
||||||
attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
doc = attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
||||||
|
self.legal_document_id = doc.id if doc.id
|
||||||
save!(validate: false)
|
save!(validate: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -747,7 +753,8 @@ class Epp::Domain < Domain
|
||||||
status: DomainTransfer::CLIENT_REJECTED
|
status: DomainTransfer::CLIENT_REJECTED
|
||||||
)
|
)
|
||||||
|
|
||||||
attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
doc = attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
||||||
|
self.legal_document_id = doc.id if doc.id
|
||||||
save!(validate: false)
|
save!(validate: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue