diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-09-09 15:32:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 15:32:08 +0200 |
commit | b6c04b35c8729b9e0aa23a8065637b1ef97cb240 (patch) | |
tree | adc25fab6eb9b4130cb2d4698b5e641c53db45c0 /lib | |
parent | 968a756067e0f41a2d5fad022c26203f772556cf (diff) | |
parent | 9e9ed6c2512055d138ac4e61a7cf07104c01cba4 (diff) | |
download | nextcloud-server-b6c04b35c8729b9e0aa23a8065637b1ef97cb240.tar.gz nextcloud-server-b6c04b35c8729b9e0aa23a8065637b1ef97cb240.zip |
Merge pull request #22742 from nextcloud/backport/22589/stable19
[stable19] Allow additional personal settings via normal registration
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Settings/Manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php index ac4f8f9342c..7e99f3a1907 100644 --- a/lib/private/Settings/Manager.php +++ b/lib/private/Settings/Manager.php @@ -261,7 +261,8 @@ class Manager implements IManager { $sections = []; $legacyForms = \OC_App::getForms('personal'); - if (!empty($legacyForms) && $this->hasLegacyPersonalSettingsToRender($legacyForms)) { + if ((!empty($legacyForms) && $this->hasLegacyPersonalSettingsToRender($legacyForms)) + || count($this->getPersonalSettings('additional')) > 1) { $sections[98] = [new Section('additional', $this->l->t('Additional settings'), 0, $this->url->imagePath('core', 'actions/settings-dark.svg'))]; } |