summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2019-03-13 21:13:55 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2019-03-17 16:20:34 +0100
commit33bafb8e2bc4c732ad36999157a5acc198ce8e41 (patch)
tree411a6b644e39275e3704c6af573a8628439812ce /settings/templates
parent4547e75078e90f5ec2eebf045a875e34063dec33 (diff)
downloadnextcloud-server-33bafb8e2bc4c732ad36999157a5acc198ce8e41.tar.gz
nextcloud-server-33bafb8e2bc4c732ad36999157a5acc198ce8e41.zip
Don't show 'Personal' header in settings when Admin section is not there
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/settings/frame.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/templates/settings/frame.php b/settings/templates/settings/frame.php
index 1734a92b064..e32c4ed2fc9 100644
--- a/settings/templates/settings/frame.php
+++ b/settings/templates/settings/frame.php
@@ -30,8 +30,10 @@ script('files', 'jquery.fileupload');
<div id="app-navigation">
<ul>
- <li class="app-navigation-caption"><?php p($l->t('Personal')); ?></li>
+ <?php if(!empty($_['forms']['admin'])) { ?>
+ <li class="app-navigation-caption"><?php p($l->t('Personal')); ?></li>
<?php
+ }
foreach($_['forms']['personal'] as $form) {
if (isset($form['anchor'])) {
$anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.PersonalSettings.index', ['section' => $form['anchor']]);