mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Added contact updator to info request
This commit is contained in:
parent
4eb2f3a580
commit
37b3868d32
2 changed files with 15 additions and 4 deletions
|
@ -34,6 +34,16 @@ module Versions
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def updator
|
||||||
|
return nil if updator_str.blank?
|
||||||
|
|
||||||
|
if updator_str =~ /^\d-api-/
|
||||||
|
ApiUser.find(updator_str)
|
||||||
|
else
|
||||||
|
User.find(updator_str)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# callbacks
|
# callbacks
|
||||||
def touch_domain_version
|
def touch_domain_version
|
||||||
domain.try(:touch_with_version)
|
domain.try(:touch_with_version)
|
||||||
|
|
|
@ -12,11 +12,12 @@ xml.epp_head do
|
||||||
xml.tag!('contact:fax', @contact.fax) if @disclosure.try(:fax) || @owner
|
xml.tag!('contact:fax', @contact.fax) if @disclosure.try(:fax) || @owner
|
||||||
xml.tag!('contact:email', @contact.email) if @disclosure.try(:email) || @owner
|
xml.tag!('contact:email', @contact.email) if @disclosure.try(:email) || @owner
|
||||||
xml.tag!('contact:clID', @contact.registrar.try(:name))
|
xml.tag!('contact:clID', @contact.registrar.try(:name))
|
||||||
|
xml.tag!('contact:crID', @contact.creator.try(:registrar))
|
||||||
#xml.tag!('contact:crID', @contact.cr_id ) if @contact.cr_id
|
|
||||||
xml.tag!('contact:crDate', @contact.created_at)
|
xml.tag!('contact:crDate', @contact.created_at)
|
||||||
xml.tag!('contact:upID', @contact.up_id) if @contact.up_id
|
if @contact.updated_at != @contact.created_at
|
||||||
xml.tag!('contact:upDate', @contact.updated_at) unless @contact.updated_at == @contact.created_at
|
xml.tag!('contact:upID', @contact.updator.try(:registrar))
|
||||||
|
xml.tag!('contact:upDate', @contact.updated_at)
|
||||||
|
end
|
||||||
xml.tag!('contact:ident', @contact.ident, type: @contact.ident_type)
|
xml.tag!('contact:ident', @contact.ident, type: @contact.ident_type)
|
||||||
xml.tag!('contact:trDate', '123') if false
|
xml.tag!('contact:trDate', '123') if false
|
||||||
if @owner
|
if @owner
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue