mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
fixed dsnkey enabled method
This commit is contained in:
parent
825f813437
commit
2016c55cb9
2 changed files with 11 additions and 4 deletions
|
@ -173,8 +173,15 @@ module Epp
|
|||
return true if doc.document.children.empty?
|
||||
|
||||
store = []
|
||||
doc.document.add.children.each_with_index do |x, i|
|
||||
store << doc.document.add.children[i].name
|
||||
|
||||
if value == 'add'
|
||||
doc.document.add.children.each_with_index do |x, i|
|
||||
store << doc.document.add.children[i].name
|
||||
end
|
||||
else
|
||||
doc.document.rem.children.each_with_index do |x, i|
|
||||
store << doc.document.rem.children[i].name
|
||||
end
|
||||
end
|
||||
|
||||
return true if store.size == 1 and store[0] == "keyData"
|
||||
|
@ -184,7 +191,7 @@ module Epp
|
|||
|
||||
def dnskey_update_enabled
|
||||
find_domain
|
||||
|
||||
|
||||
if @domain.dnskey_update_enabled? && !params[:parsed_frame].css('update').empty?
|
||||
|
||||
return if parsed_response_for_dnskey('add')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue