mirror of
https://github.com/internetee/registry.git
synced 2025-07-13 14:35:05 +02:00
Replace hostObj with hostAttr
This commit is contained in:
parent
1d7b289a10
commit
e0c22db7b1
5 changed files with 356 additions and 313 deletions
|
@ -128,14 +128,9 @@ class Epp::DomainsController < EppController
|
|||
ret = true
|
||||
|
||||
# TODO: Verify contact presence if registrant is juridical
|
||||
attrs_present = epp_request_valid?('name', 'ns', 'registrant', 'legalDocument')
|
||||
attrs_present = epp_request_valid?('name', 'ns', 'registrant', 'legalDocument', 'hostAttr')
|
||||
ret = false unless attrs_present
|
||||
|
||||
if params[:parsed_frame].css('hostObj').any?
|
||||
epp_errors << { code: '2306', msg: I18n.t('host_obj_is_not_allowed') }
|
||||
ret = false
|
||||
end
|
||||
|
||||
if params[:parsed_frame].css('dsData').count > 0 && params[:parsed_frame].css('create > keyData').count > 0
|
||||
epp_errors << { code: '2306', msg: I18n.t('ds_data_and_key_data_must_not_exists_together') }
|
||||
ret = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue