]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow additional personal settings via normal registration 22589/head
authorJoas Schilling <coding@schilljs.com>
Fri, 4 Sep 2020 13:21:48 +0000 (15:21 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 4 Sep 2020 13:21:48 +0000 (15:21 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Settings/Manager.php

index b775e364c390ffac8d38f9a5f5498b74aa3a951b..93291de6bfd650563f673bcdf62e547af19cba06 100644 (file)
@@ -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'))];
                }