mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Merge branch '110412166-registrant_change' into staging
This commit is contained in:
commit
aa0a25a609
2 changed files with 11 additions and 1 deletions
|
@ -489,6 +489,15 @@ class Epp::Domain < Domain
|
||||||
|
|
||||||
# at[:statuses] += at_add[:domain_statuses_attributes]
|
# at[:statuses] += at_add[:domain_statuses_attributes]
|
||||||
|
|
||||||
|
if registrant_id && registrant.code == frame.css('registrant')
|
||||||
|
|
||||||
|
throw :epp_error, {
|
||||||
|
code: '2305',
|
||||||
|
msg: I18n.t(:contact_already_associated_with_the_domain)
|
||||||
|
}
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
if errors.empty? && verify &&
|
if errors.empty? && verify &&
|
||||||
Setting.request_confrimation_on_registrant_change_enabled &&
|
Setting.request_confrimation_on_registrant_change_enabled &&
|
||||||
frame.css('registrant').present? &&
|
frame.css('registrant').present? &&
|
||||||
|
|
|
@ -936,3 +936,4 @@ en:
|
||||||
add_blocked_domain: 'Add domain to blocked list'
|
add_blocked_domain: 'Add domain to blocked list'
|
||||||
edit_pw: 'Edit Pw'
|
edit_pw: 'Edit Pw'
|
||||||
optional: 'Optional'
|
optional: 'Optional'
|
||||||
|
contact_already_associated_with_the_domain: 'Object association prohibits operation, contact already associated with the domain'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue