allow admin to disable groups on personal page
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
7ff205cf94
commit
de809b4ac7
|
@ -1541,4 +1541,9 @@ $CONFIG = array(
|
||||||
*/
|
*/
|
||||||
'gs.federation' => 'internal',
|
'gs.federation' => 'internal',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* show group membership on the personal page
|
||||||
|
*/
|
||||||
|
'settings.personal.showGroupMembership' => true
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
|
@ -160,6 +160,7 @@ if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) {
|
||||||
$uid = $user->getUID();
|
$uid = $user->getUID();
|
||||||
$userData = $accountManager->getUser($user);
|
$userData = $accountManager->getUser($user);
|
||||||
|
|
||||||
|
$tmpl->assign('showGroupMembership', $config->getSystemValue('settings.personal.showGroupMembership', true));
|
||||||
$tmpl->assign('total_space', $totalSpace);
|
$tmpl->assign('total_space', $totalSpace);
|
||||||
$tmpl->assign('usage_relative', $storageInfo['relative']);
|
$tmpl->assign('usage_relative', $storageInfo['relative']);
|
||||||
$tmpl->assign('quota', $storageInfo['quota']);
|
$tmpl->assign('quota', $storageInfo['quota']);
|
||||||
|
|
|
@ -239,6 +239,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php if ($_['showGroupMembership'] === true): ?>
|
||||||
<div id="groups" class="section">
|
<div id="groups" class="section">
|
||||||
<h2><?php p($l->t('Groups')); ?></h2>
|
<h2><?php p($l->t('Groups')); ?></h2>
|
||||||
<p><?php p($l->t('You are member of the following groups:')); ?></p>
|
<p><?php p($l->t('You are member of the following groups:')); ?></p>
|
||||||
|
@ -246,6 +247,7 @@
|
||||||
<?php p(implode(', ', $_['groups'])); ?>
|
<?php p(implode(', ', $_['groups'])); ?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($_['passwordChangeSupported']) {
|
if($_['passwordChangeSupported']) {
|
||||||
|
|
Loading…
Reference in New Issue