mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
REPP Domains: Allow create/read/update for domain-scoped contacts
This commit is contained in:
parent
9dcd40ee3b
commit
fda58e9a41
3 changed files with 62 additions and 1 deletions
|
@ -154,7 +154,7 @@ module Actions
|
|||
def assign_contact(obj, add: false, admin: true, code:)
|
||||
if obj.blank?
|
||||
domain.add_epp_error('2303', 'contact', code, %i[domain_contacts not_found])
|
||||
elsif obj.org? && admin
|
||||
elsif obj.try(:org?) && admin && add
|
||||
domain.add_epp_error('2306', 'contact', code,
|
||||
%i[domain_contacts admin_contact_can_be_only_private_person])
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue