mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
rollback
This commit is contained in:
parent
8bbdb3c537
commit
185260907b
1 changed files with 0 additions and 10 deletions
|
@ -50,7 +50,6 @@ module Api
|
||||||
|
|
||||||
reparsed_request = reparsed_request(request.body.string)
|
reparsed_request = reparsed_request(request.body.string)
|
||||||
disclosed_attributes = reparsed_request[:disclosed_attributes]
|
disclosed_attributes = reparsed_request[:disclosed_attributes]
|
||||||
disclosed_attributes = disclose_attributes_for_org_registrant(disclosed_attributes)
|
|
||||||
render_disclosed_attributes_error and return if disclosed_attributes.present? && contact.org? &&
|
render_disclosed_attributes_error and return if disclosed_attributes.present? && contact.org? &&
|
||||||
!disclosed_attributes.include?('phone')
|
!disclosed_attributes.include?('phone')
|
||||||
|
|
||||||
|
@ -74,15 +73,6 @@ module Api
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def disclose_attributes_for_org_registrant(disclosed_attributes)
|
|
||||||
return unless current_registrant_user.org?
|
|
||||||
|
|
||||||
disclosed_attributes << 'name' unless disclosed_attributes.include? 'name'
|
|
||||||
disclosed_attributes << 'email' unless disclosed_attributes.include? 'email'
|
|
||||||
|
|
||||||
disclosed_attributes
|
|
||||||
end
|
|
||||||
|
|
||||||
def representable_contact(uuid)
|
def representable_contact(uuid)
|
||||||
country = current_registrant_user.country.alpha2
|
country = current_registrant_user.country.alpha2
|
||||||
contact = Contact.find_by(uuid: uuid, ident: current_registrant_user.ident,
|
contact = Contact.find_by(uuid: uuid, ident: current_registrant_user.ident,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue