Require legalDoc when changing domain registrant

This commit is contained in:
Martin Lensment 2014-12-30 17:49:11 +02:00
parent bd1cd25734
commit 422d95dec1
3 changed files with 30 additions and 174 deletions

View file

@ -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