mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 23:54:44 +02:00
REPP domains: Nameserver actions
This commit is contained in:
parent
fcb97df45d
commit
2b3634b048
10 changed files with 140 additions and 6 deletions
|
@ -55,6 +55,7 @@ module Actions
|
|||
end
|
||||
|
||||
def assign_nameserver_modifications
|
||||
puts "ASSIGNING"
|
||||
@nameservers = []
|
||||
params[:nameservers].each do |ns_attr|
|
||||
case ns_attr[:action]
|
||||
|
|
|
@ -86,6 +86,8 @@ module EppErrors
|
|||
end
|
||||
end
|
||||
nil
|
||||
rescue NameError
|
||||
nil
|
||||
end
|
||||
|
||||
def construct_msg_args_and_value(epp_error_args)
|
||||
|
|
|
@ -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