mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Attach owner to technical
This commit is contained in:
parent
3c3a8bfb47
commit
f2d45f4317
4 changed files with 46 additions and 3 deletions
|
@ -40,8 +40,9 @@ class Domain < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
attach_contact(Contact::CONTACT_TYPE_TECH, owner_contact) if tech_contacts.empty?
|
||||
|
||||
if owner_contact.citizen?
|
||||
attach_contact(Contact::CONTACT_TYPE_TECH, owner_contact) if tech_contacts.empty?
|
||||
attach_contact(Contact::CONTACT_TYPE_ADMIN, owner_contact) if admin_contacts.empty?
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue