Procházet zdrojové kódy

Merge pull request #5259 from nextcloud/disable-groups-on-personal-page

allow admin to disable groups on personal page
tags/v13.0.0beta1
Morris Jobke před 7 roky
rodič
revize
72235064fb

+ 5
- 0
config/config.sample.php Zobrazit soubor

@@ -1548,4 +1548,9 @@ $CONFIG = array(
*/
'gs.federation' => 'internal',

/**
* show group membership on the personal page
*/
'settings.personal.showGroupMembership' => true

);

+ 1
- 0
settings/personal.php Zobrazit soubor

@@ -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']);

+ 2
- 0
settings/templates/personal.php Zobrazit soubor

@@ -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']) {

Načítá se…
Zrušit
Uložit