Skip to content

Commit ab4a270

Browse files
added undisclosable_mask if phone attribute isn't disclosed
1 parent dc12446 commit ab4a270

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/presenters/registrant_presenter.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def disclose_registrant_org_phone
3131

3232
if phone_disclosed_and_captcha_solved || whitelisted_user? || registrant_publishable?
3333
contact.send('phone')
34+
elsif !contact.attribute_disclosed?('phone')
35+
undisclosable_mask
3436
else
3537
disclosable_mask
3638
end

0 commit comments

Comments
 (0)