mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Fix disclosable scope when copying registrant to admin/tech
This commit is contained in:
parent
70759cb51b
commit
d4b84a58df
1 changed files with 4 additions and 2 deletions
|
@ -110,8 +110,10 @@ class Epp::Domain < Domain
|
||||||
|
|
||||||
def attach_default_contacts
|
def attach_default_contacts
|
||||||
return if registrant.blank?
|
return if registrant.blank?
|
||||||
tech_contacts << registrant if tech_domain_contacts.blank?
|
registrant_obj = Contact.find_by(code: registrant.code)
|
||||||
admin_contacts << registrant if admin_domain_contacts.blank? && !registrant.org?
|
|
||||||
|
tech_contacts << registrant_obj if tech_domain_contacts.blank?
|
||||||
|
admin_contacts << registrant_obj if admin_domain_contacts.blank? && !registrant.org?
|
||||||
end
|
end
|
||||||
|
|
||||||
def apply_pending_delete!
|
def apply_pending_delete!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue