mirror of
https://github.com/internetee/registry.git
synced 2025-07-14 06:55:11 +02:00
Require legalDoc when changing domain registrant
This commit is contained in:
parent
bd1cd25734
commit
422d95dec1
3 changed files with 30 additions and 174 deletions
|
@ -171,7 +171,12 @@ module Epp::DomainsHelper
|
|||
## UPDATE
|
||||
def validate_domain_update_request
|
||||
@ph = params_hash['epp']['command']['update']['update']
|
||||
xml_attrs_present?(@ph, [['name']])
|
||||
|
||||
if parsed_frame.css('chg registrant').present? && parsed_frame.css('legalDocument').blank?
|
||||
xml_attrs_present?(@ph, [['name'], ['legalDocument']])
|
||||
else
|
||||
xml_attrs_present?(@ph, [['name']])
|
||||
end
|
||||
end
|
||||
|
||||
## TRANSFER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue