mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
REPP domains: Nameserver actions
This commit is contained in:
parent
fcb97df45d
commit
2b3634b048
10 changed files with 140 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue