diff options
Diffstat (limited to 'apps/settings/lib/Settings/Personal/PersonalInfo.php')
-rw-r--r-- | apps/settings/lib/Settings/Personal/PersonalInfo.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php index def7e19f006..4bac8e67fb7 100644 --- a/apps/settings/lib/Settings/Personal/PersonalInfo.php +++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php @@ -56,7 +56,6 @@ use OCP\Notification\IManager; use OCP\Settings\ISettings; class PersonalInfo implements ISettings { - use \OC\Profile\TProfileHelper; /** @var IConfig */ private $config; @@ -166,7 +165,8 @@ class PersonalInfo implements ISettings { 'twitterScope' => $account->getProperty(IAccountManager::PROPERTY_TWITTER)->getScope(), 'twitterVerification' => $account->getProperty(IAccountManager::PROPERTY_TWITTER)->getVerified(), 'groups' => $this->getGroups($user), - 'isFairUseOfFreePushService' => $this->isFairUseOfFreePushService() + 'isFairUseOfFreePushService' => $this->isFairUseOfFreePushService(), + 'profileEnabledGlobally' => $this->profileManager->isProfileEnabled(), ] + $messageParameters + $languageParameters + $localeParameters; $personalInfoParameters = [ @@ -174,7 +174,8 @@ class PersonalInfo implements ISettings { 'displayNameMap' => $this->getDisplayNameMap($account), 'emailMap' => $this->getEmailMap($account), 'languageMap' => $this->getLanguageMap($user), - 'profileEnabled' => $this->isProfileEnabled($account), + 'profileEnabledGlobally' => $this->profileManager->isProfileEnabled(), + 'profileEnabled' => $this->profileManager->isProfileEnabled($user), 'organisationMap' => $this->getOrganisationMap($account), 'roleMap' => $this->getRoleMap($account), 'headlineMap' => $this->getHeadlineMap($account), @@ -190,6 +191,7 @@ class PersonalInfo implements ISettings { 'profileConfig' => $this->profileManager->getProfileConfigWithMetadata($user, $user), ]; + $this->initialStateService->provideInitialState('profileEnabledGlobally', $this->profileManager->isProfileEnabled()); $this->initialStateService->provideInitialState('personalInfoParameters', $personalInfoParameters); $this->initialStateService->provideInitialState('accountParameters', $accountParameters); $this->initialStateService->provideInitialState('profileParameters', $profileParameters); |