From a0a7b8c7b3442351122d293ea2c24409456d0e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20Keskk=C3=BCla?= Date: Fri, 21 Nov 2014 16:15:55 +0200 Subject: [PATCH] Fixed contact#info returning wrong EPP error --- app/helpers/epp/contacts_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/epp/contacts_helper.rb b/app/helpers/epp/contacts_helper.rb index 0dfe0d5f8..bcce06009 100644 --- a/app/helpers/epp/contacts_helper.rb +++ b/app/helpers/epp/contacts_helper.rb @@ -100,7 +100,7 @@ module Epp::ContactsHelper ## info def validate_contact_info_request # and process @ph = params_hash['epp']['command']['info']['info'] - xml_attrs_present?(@ph, [['id']]) + return false unless xml_attrs_present?(@ph, [['id']]) @contact = find_contact return false unless @contact return true if current_epp_user.registrar == @contact.registrar || xml_attrs_present?(@ph, [%w(authInfo pw)])