mirror of
https://github.com/internetee/registry.git
synced 2025-07-10 21:23:26 +02:00
Merge branch '116207475-blank_registrant' into staging
This commit is contained in:
commit
10b5d99d13
1 changed files with 5 additions and 3 deletions
|
@ -156,7 +156,8 @@ class Epp::Domain < Domain
|
||||||
def attrs_from(frame, current_user, action = nil)
|
def attrs_from(frame, current_user, action = nil)
|
||||||
at = {}.with_indifferent_access
|
at = {}.with_indifferent_access
|
||||||
|
|
||||||
code = frame.css('registrant').first.try(:text)
|
registrant_frame = frame.css('registrant').first
|
||||||
|
code = registrant_frame.try(:text)
|
||||||
if code.present?
|
if code.present?
|
||||||
if action == 'chg' && registrant_change_prohibited?
|
if action == 'chg' && registrant_change_prohibited?
|
||||||
add_epp_error('2304', nil, DomainStatus::SERVER_REGISTRANT_CHANGE_PROHIBITED, I18n.t(:object_status_prohibits_operation))
|
add_epp_error('2304', nil, DomainStatus::SERVER_REGISTRANT_CHANGE_PROHIBITED, I18n.t(:object_status_prohibits_operation))
|
||||||
|
@ -168,8 +169,9 @@ class Epp::Domain < Domain
|
||||||
add_epp_error('2303', 'registrant', code, [:registrant, :not_found])
|
add_epp_error('2303', 'registrant', code, [:registrant, :not_found])
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
add_epp_error('2306', nil, nil, [:registrant, :cannot_be_missing])
|
add_epp_error('2306', nil, nil, [:registrant, :cannot_be_missing])
|
||||||
end
|
end if registrant_frame
|
||||||
|
|
||||||
|
|
||||||
at[:name] = frame.css('name').text if new_record?
|
at[:name] = frame.css('name').text if new_record?
|
||||||
at[:registrar_id] = current_user.registrar.try(:id)
|
at[:registrar_id] = current_user.registrar.try(:id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue