mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 21:46:24 +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)
|
||||
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? &&
|
||||
!disclosed_attributes.include?('phone')
|
||||
|
||||
|
@ -74,15 +73,6 @@ module Api
|
|||
|
||||
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)
|
||||
country = current_registrant_user.country.alpha2
|
||||
contact = Contact.find_by(uuid: uuid, ident: current_registrant_user.ident,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue