REPP domains: Nameserver actions

This commit is contained in:
Karl Erik Õunapuu 2021-01-18 13:24:16 +02:00
parent fcb97df45d
commit 2b3634b048
No known key found for this signature in database
GPG key ID: C9DD647298A34764
10 changed files with 140 additions and 6 deletions

View file

@ -29,7 +29,7 @@ class Epp::Domain < Domain
active_techs = tech_domain_contacts.select { |x| !x.marked_for_destruction? }
# validate registrant here as well
([Contact.find_by(code: registrant.code)] + active_admins + active_techs).each do |x|
([Contact.find(registrant.id)] + active_admins + active_techs).each do |x|
unless x.valid?
add_epp_error('2304', nil, nil, I18n.t(:contact_is_not_valid, value: x.try(:code)))
ok = false