From de809b4ac789fc1f72a26bf097c5f019127be3c6 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 6 Jun 2017 09:57:30 +0200 Subject: [PATCH] allow admin to disable groups on personal page Signed-off-by: Bjoern Schiessle --- config/config.sample.php | 5 +++++ settings/personal.php | 1 + settings/templates/personal.php | 2 ++ 3 files changed, 8 insertions(+) diff --git a/config/config.sample.php b/config/config.sample.php index 27499825c6..3ea898406d 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1541,4 +1541,9 @@ $CONFIG = array( */ 'gs.federation' => 'internal', +/** + * show group membership on the personal page + */ +'settings.personal.showGroupMembership' => true + ); diff --git a/settings/personal.php b/settings/personal.php index a31ad9b833..7cdc40b119 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -160,6 +160,7 @@ if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) { $uid = $user->getUID(); $userData = $accountManager->getUser($user); +$tmpl->assign('showGroupMembership', $config->getSystemValue('settings.personal.showGroupMembership', true)); $tmpl->assign('total_space', $totalSpace); $tmpl->assign('usage_relative', $storageInfo['relative']); $tmpl->assign('quota', $storageInfo['quota']); diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 8eadfd1a22..4a716d3917 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -239,6 +239,7 @@ +

t('Groups')); ?>

t('You are member of the following groups:')); ?>

@@ -246,6 +247,7 @@

+