mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Cyclomatic complexity fix
This commit is contained in:
parent
d57eac8f98
commit
9a3a9ed6f4
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ module Epp::ContactsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def info_contact
|
def info_contact
|
||||||
handle_errors(@contact) and return unless @contact
|
handle_errors(@contact) and return unless @contact && rights?
|
||||||
handle_errors(@contact) and return unless rights?
|
# handle_errors(@contact) and return unless rights?
|
||||||
@disclosure = ContactDisclosure.default_values.merge(@contact.disclosure.try(:as_hash) || {})
|
@disclosure = ContactDisclosure.default_values.merge(@contact.disclosure.try(:as_hash) || {})
|
||||||
@disclosure_policy = @contact.disclosure.try(:attributes_with_flag)
|
@disclosure_policy = @contact.disclosure.try(:attributes_with_flag)
|
||||||
@owner = owner?(false)
|
@owner = owner?(false)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue