diff options
Diffstat (limited to 'lib/private/Accounts')
-rw-r--r-- | lib/private/Accounts/AccountManager.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index 7f855c07d46..127adc9ef38 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -40,6 +40,7 @@ use libphonenumber\NumberParseException; use libphonenumber\PhoneNumber; use libphonenumber\PhoneNumberFormat; use libphonenumber\PhoneNumberUtil; +use OC\Profile\TProfileHelper; use OCA\Settings\BackgroundJobs\VerifyUserData; use OCP\Accounts\IAccount; use OCP\Accounts\IAccountManager; @@ -79,6 +80,8 @@ use function json_last_error; class AccountManager implements IAccountManager { use TAccountsHelper; + use TProfileHelper; + /** @var IDBConnection database connection */ private $connection; @@ -722,7 +725,7 @@ class AccountManager implements IAccountManager { [ 'name' => self::PROPERTY_PROFILE_ENABLED, - 'value' => '1', + 'value' => $this->isProfileEnabledByDefault($this->config) ? '1' : '0', ], ]; } |