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:40 +0300 |
commit | 9e9ed6c2512055d138ac4e61a7cf07104c01cba4 (patch) | |
tree | 8f80c71bd587ff652e713feae956e0707bb5b241 /lib | |
parent | c3a6f50206f667e33eb4c6d222d190308303f41b (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 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'))]; } |