From d7bd8d70f14231451bc0c5f96c9609237556c0af Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Wed, 14 Sep 2022 18:02:04 +0530 Subject: [PATCH 1/2] remove profile --- patches/019-patch_personalinfo.patch | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 patches/019-patch_personalinfo.patch diff --git a/patches/019-patch_personalinfo.patch b/patches/019-patch_personalinfo.patch new file mode 100644 index 00000000..745311ad --- /dev/null +++ b/patches/019-patch_personalinfo.patch @@ -0,0 +1,35 @@ +From: Avinash +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); -- GitLab From aa41b9524f65c33737e196ccc76587c22d2e5299 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Wed, 14 Sep 2022 18:07:04 +0530 Subject: [PATCH 2/2] remove profile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index e321a777..eb863626 100644 --- a/Dockerfile +++ b/Dockerfile @@ -127,6 +127,7 @@ RUN patch -u ${BASE_DIR}/lib/private/legacy/OC_Helper.php -i ${TMP_PATCH_DIR}/01 RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/015-email-mail-template.patch RUN patch -u ${BASE_DIR}/core/templates/layout.guest.php -i ${TMP_PATCH_DIR}/016-login-screen.patch RUN patch -u ${BASE_DIR}/core/Command/User/Setting.php -i ${TMP_PATCH_DIR}/018-occ-user-setting.patch +RUN patch -u ${BASE_DIR}/apps/settings/lib/Settings/Personal/PersonalInfo.php -i ${TMP_PATCH_DIR}/019-personalinfo.patch RUN rm -rf ${TMP_PATCH_DIR} # show reset pwd page with a query param -- GitLab