diff options
author | Zishan-7 <zishan2539@gmail.com> | 2021-08-30 18:29:28 +0530 |
---|---|---|
committer | hamza221 <hamzamahjoubi221@gmail.com> | 2023-05-22 16:43:19 +0200 |
commit | fb0709f4a4511045c8e009ebc899db3b9f5bda7f (patch) | |
tree | 4247078b69ff595e1789990cde5e932d55ea3ffa /lib | |
parent | 73ef6e258f363a9bf7f44cd0e79bdff0b44450b4 (diff) |
Fix Don't show groups in share placeholder if group sharing is disabled #2242
Signed-off-by: Zishan-7 <zishan2539@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/PageController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index fcfee915..7cd2e2aa 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -106,7 +106,10 @@ class PageController extends Controller { $isCirclesEnabled = $this->appManager->isEnabledForUser('circles') === true; // if circles is not installed, we use 0.0.0 $isCircleVersionCompatible = $this->compareVersion->isCompatible($circleVersion ? $circleVersion : '0.0.0', 22); + // Check whether group sharing is enabled or not + $isGroupSharingEnabled = $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes'; + $this->initialStateService->provideInitialState(Application::APP_ID, 'isGroupSharingEnabled', $isGroupSharingEnabled); $this->initialStateService->provideInitialState(Application::APP_ID, 'locales', $locales); $this->initialStateService->provideInitialState(Application::APP_ID, 'defaultProfile', $defaultProfile); $this->initialStateService->provideInitialState(Application::APP_ID, 'supportedNetworks', $supportedNetworks); |