Fixed contact#info returning wrong EPP error

This commit is contained in:
Andres Keskküla 2014-11-21 16:15:55 +02:00
parent b046927c95
commit a0a7b8c7b3

View file

@ -100,7 +100,7 @@ module Epp::ContactsHelper
## info ## info
def validate_contact_info_request # and process def validate_contact_info_request # and process
@ph = params_hash['epp']['command']['info']['info'] @ph = params_hash['epp']['command']['info']['info']
xml_attrs_present?(@ph, [['id']]) return false unless xml_attrs_present?(@ph, [['id']])
@contact = find_contact @contact = find_contact
return false unless @contact return false unless @contact
return true if current_epp_user.registrar == @contact.registrar || xml_attrs_present?(@ph, [%w(authInfo pw)]) return true if current_epp_user.registrar == @contact.registrar || xml_attrs_present?(@ph, [%w(authInfo pw)])