mirror of
https://github.com/internetee/registry.git
synced 2025-07-13 14:35:05 +02:00
Fixed info contact NoMethodError if no disclosure
This commit is contained in:
parent
713b7399b0
commit
f7b3184539
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ module Epp::ContactsHelper
|
|||
def info_contact
|
||||
handle_errors(@contact) and return unless @contact
|
||||
handle_errors(@contact) and return unless rights?
|
||||
@disclosure = ContactDisclosure.default_values.merge(@contact.disclosure.as_hash)
|
||||
@disclosure_policy = @contact.disclosure.attributes_with_flag
|
||||
@disclosure = ContactDisclosure.default_values.merge(@contact.disclosure.try(:as_hash) || {})
|
||||
@disclosure_policy = @contact.disclosure.try(:attributes_with_flag)
|
||||
@owner = owner?(false)
|
||||
render 'epp/contacts/info'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue