diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-04 16:21:48 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-09-09 14:25:47 +0300 |
commit | 7362145decc0aec9077bef39bad2d769ae72fd60 (patch) | |
tree | 102502cb09905ab90670849e923a9f6da9dd7a6a /lib | |
parent | 1ed0a8caced114f5ddaea2eed02e37727cb58a95 (diff) |
Allow additional personal settings via normal registration
Signed-off-by: Joas Schilling <coding@schilljs.com>
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'))]; } |