mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 14:06:21 +02:00
comment out unnecessary condition
This commit is contained in:
parent
185260907b
commit
e745277b8a
1 changed files with 11 additions and 2 deletions
|
@ -46,17 +46,23 @@ module Api
|
|||
end
|
||||
|
||||
def update
|
||||
p '------'
|
||||
p params
|
||||
p '-----'
|
||||
contact = find_contact_and_update_credentials(params[:uuid], params[:name], params[:email], params[:phone])
|
||||
|
||||
reparsed_request = reparsed_request(request.body.string)
|
||||
disclosed_attributes = reparsed_request[:disclosed_attributes]
|
||||
render_disclosed_attributes_error and return if disclosed_attributes.present? && contact.org? &&
|
||||
!disclosed_attributes.include?('phone')
|
||||
p '--------'
|
||||
|
||||
# render_disclosed_attributes_error and return if disclosed_attributes.present? && contact.org? &&
|
||||
# !disclosed_attributes.include?('phone')
|
||||
|
||||
contact.disclosed_attributes = disclosed_attributes if disclosed_attributes
|
||||
publishable = reparsed_request[:registrant_publishable]
|
||||
contact.registrant_publishable = publishable if publishable.in? [true, false]
|
||||
|
||||
|
||||
logger.debug "Setting.address_processing is set to #{Setting.address_processing}"
|
||||
contact.address = parse_address(params[:address]) if Setting.address_processing && params[:address]
|
||||
render_address_error and return if !Setting.address_processing && params[:address]
|
||||
|
@ -67,6 +73,9 @@ module Api
|
|||
render_fax_error and return if ENV['fax_enabled'] != 'true' && params[:fax]
|
||||
|
||||
contact = update_and_notify!(contact)
|
||||
p '--- contact'
|
||||
p contact
|
||||
p '-------'
|
||||
|
||||
render json: serialize_contact(contact, true)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue