diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-09-29 09:35:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 09:35:24 +0200 |
commit | 6f18e4ca78320783dfbd85431aac2152d1a98f7c (patch) | |
tree | 49ca7656abfc900d14c9c3ea4ded4ef6aeda127c /lib | |
parent | c2262d79428cc8f34dedc13295c37260ae9f90d4 (diff) | |
parent | 963a03e108632931c202e9a13bb59914a5bbb274 (diff) | |
download | nextcloud-server-6f18e4ca78320783dfbd85431aac2152d1a98f7c.tar.gz nextcloud-server-6f18e4ca78320783dfbd85431aac2152d1a98f7c.zip |
Merge pull request #22743 from nextcloud/backport/22589/stable18
[stable18] 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 5b6bea63c6b..4ab5cf61965 100644 --- a/lib/private/Settings/Manager.php +++ b/lib/private/Settings/Manager.php @@ -357,7 +357,8 @@ class Manager implements IManager { ]; $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'))]; } |