Change default profile privacy settings (Email hidding)

Edit this file more less in the line 308: “NCrootFolder”/lib/private/Accounts/AccountManager.php

Where it says:
self::PROPERTY_EMAIL =>
[
‘value’ => $user->getEMailAddress(),
‘scope’ => self::VISIBILITY_CONTACTS_ONLY,
‘verified’ => self::NOT_VERIFIED,
],

It should say:
self::PROPERTY_EMAIL =>
[
‘value’ => $user->getEMailAddress(),
‘scope’ => self::VISIBILITY_PRIVATE,
‘verified’ => self::NOT_VERIFIED,
],

The problem is that the file might be overwrited in an update.

I think this should be private by default, or at least, configurable.

1 Like