diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-03-17 18:06:38 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-03-18 02:55:12 +0000 |
commit | 108abd77ed0ee29bca4019f6a212ba1b2bdad5e7 (patch) | |
tree | 3c2d3f2382b83eb93cae4f974d20bbbbe2b9789b /lib/private/Accounts | |
parent | 1fc0b4320c8921ad59bf4d41a88bf9936e1f653d (diff) | |
download | nextcloud-server-108abd77ed0ee29bca4019f6a212ba1b2bdad5e7.tar.gz nextcloud-server-108abd77ed0ee29bca4019f6a212ba1b2bdad5e7.zip |
Add profile default setting for admin
Signed-off-by: Christopher Ng <chrng8@gmail.com>
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', ], ]; } |