fix: phone privacy check no longer bypassed for contacts
applyPrivacy() had '!phoneAllowed && !isContact' which meant contacts always saw the phone number regardless of the user's privacy settings (e.g. 'Nobody'). Removed the isContact bypass so privacy rules are enforced for everyone.
This commit is contained in:
parent
7349e0ae68
commit
b9adf46826
1 changed files with 1 additions and 1 deletions
|
|
@ -614,7 +614,7 @@ func applyPrivacy(ctx context.Context, privacy PrivacyEvaluator, viewerUserID in
|
|||
if err != nil {
|
||||
return domain.User{}, err
|
||||
}
|
||||
if !phoneAllowed && !isContact {
|
||||
if !phoneAllowed {
|
||||
user.Phone = ""
|
||||
}
|
||||
statusAllowed, err := canSee(domain.PrivacyKeyStatusTimestamp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue