Attach owner to technical

This commit is contained in:
Martin Lensment 2014-07-31 12:55:21 +03:00
parent 3c3a8bfb47
commit f2d45f4317
4 changed files with 46 additions and 3 deletions

View file

@ -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