diff --git a/config/config.sample.php b/config/config.sample.php index 27499825c64fa0e4026bc155191b551b2884f595..3ea898406d788872a1b5cd3bd31115f5e028d330 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 5a6ff762088c3a195ed640caeb4ba6f6ee59b188..458d1e8d428ee78cebe6f7c82630560740619242 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 12f291bd807ff4b6e3eea4f9696a35779c0936cd..a658ac34e84a364926767c2a919b0c353a9be18e 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -239,6 +239,7 @@ </div> </div> +<?php if ($_['showGroupMembership'] === true): ?> <div id="groups" class="section"> <h2><?php p($l->t('Groups')); ?></h2> <p><?php p($l->t('You are member of the following groups:')); ?></p> @@ -246,6 +247,7 @@ <?php p(implode(', ', $_['groups'])); ?> </p> </div> +<?php endif; ?> <?php if($_['passwordChangeSupported']) {