Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7bd8d70 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

remove profile

parent 9bda4cc1
Loading
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
From: Avinash <avinashg@e.email>
Date: Tue, 14 Sept 2022 17:58 +0530
Subject: [PATCH] This patch hides the profile sections from personal info page

This patch hides the profile sections from personal info page

--- ./apps/settings/lib/Settings/Personal/PersonalInfo.php	2022-09-14 17:48:53.974177500 +0530
+++ ./apps/settings/lib/Settings/Personal/PersonalInfo-new.php	2022-09-14 17:50:52.474177500 +0530
@@ -166,7 +166,7 @@
 			'twitterVerification' => $account->getProperty(IAccountManager::PROPERTY_TWITTER)->getVerified(),
 			'groups' => $this->getGroups($user),
 			'isFairUseOfFreePushService' => $this->isFairUseOfFreePushService(),
-			'profileEnabledGlobally' => $this->profileManager->isProfileEnabled(),
+			'profileEnabledGlobally' => false,
 		] + $messageParameters + $languageParameters + $localeParameters;

 		$personalInfoParameters = [
@@ -174,7 +174,7 @@
 			'displayNameMap' => $this->getDisplayNameMap($account),
 			'emailMap' => $this->getEmailMap($account),
 			'languageMap' => $this->getLanguageMap($user),
-			'profileEnabledGlobally' => $this->profileManager->isProfileEnabled(),
+			'profileEnabledGlobally' => false,
 			'profileEnabled' => $this->profileManager->isProfileEnabled($user),
 			'organisationMap' => $this->getOrganisationMap($account),
 			'roleMap' => $this->getRoleMap($account),
@@ -191,7 +191,7 @@
 			'profileConfig' => $this->profileManager->getProfileConfigWithMetadata($user, $user),
 		];

-		$this->initialStateService->provideInitialState('profileEnabledGlobally', $this->profileManager->isProfileEnabled());
+		$this->initialStateService->provideInitialState('profileEnabledGlobally', false);
 		$this->initialStateService->provideInitialState('personalInfoParameters', $personalInfoParameters);
 		$this->initialStateService->provideInitialState('accountParameters', $accountParameters);
 		$this->initialStateService->provideInitialState('profileParameters', $profileParameters);