mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +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
|
||||
return if registrant.blank?
|
||||
tech_contacts << registrant if tech_domain_contacts.blank?
|
||||
admin_contacts << registrant if admin_domain_contacts.blank? && !registrant.org?
|
||||
registrant_obj = Contact.find_by(code: registrant.code)
|
||||
|
||||
tech_contacts << registrant_obj if tech_domain_contacts.blank?
|
||||
admin_contacts << registrant_obj if admin_domain_contacts.blank? && !registrant.org?
|
||||
end
|
||||
|
||||
def apply_pending_delete!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue