mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 12:31:21 +02:00
110412166-validation_for_registrant_change
This commit is contained in:
parent
89292bea53
commit
c3d76ab13f
2 changed files with 10 additions and 0 deletions
|
@ -488,6 +488,15 @@ class Epp::Domain < Domain
|
|||
|
||||
# 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 &&
|
||||
Setting.request_confrimation_on_registrant_change_enabled &&
|
||||
frame.css('registrant').present? &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue