mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Updated disclosure
This commit is contained in:
parent
4e5aecb26d
commit
4800e0c315
11 changed files with 71 additions and 27 deletions
|
@ -38,7 +38,8 @@ module Epp::ContactsHelper
|
|||
def info_contact
|
||||
handle_errors(@contact) and return unless @contact
|
||||
handle_errors(@contact) and return unless rights?
|
||||
@disclosure = @contact.disclosure
|
||||
@disclosure = ContactDisclosure.default_values.merge(@contact.disclosure.as_hash)
|
||||
@disclosure_policy = @contact.disclosure.attributes_with_flag
|
||||
@owner = owner?(false)
|
||||
render 'epp/contacts/info'
|
||||
end
|
||||
|
@ -145,7 +146,7 @@ module Epp::ContactsHelper
|
|||
case type
|
||||
when :update
|
||||
# TODO: support for rem/add
|
||||
contact_hash = merge_attribute_hash(@ph[:chg], type)
|
||||
contact_hash = merge_attribute_hash(@ph[:chg], type).delete_if { |_k, v| v.empty? }
|
||||
else
|
||||
contact_hash = merge_attribute_hash(@ph, type)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue