diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-04 15:21:48 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-04 15:21:48 +0200 |
commit | cb146c8486ea4c9b288c2e915b6c47fee2135f75 (patch) | |
tree | 3cc611c3f57bee86de8d1d12af606f799fdc5b49 /lib | |
parent | 24d1d93d9f926280a636291c03cd56c7fec5417f (diff) | |
download | nextcloud-server-cb146c8486ea4c9b288c2e915b6c47fee2135f75.tar.gz nextcloud-server-cb146c8486ea4c9b288c2e915b6c47fee2135f75.zip |
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 b775e364c39..93291de6bfd 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'))]; } |