Merge pull request #22589 from nextcloud/bugfix/noid/allow-additional-personal-settings-via-normal-registration

Allow additional personal settings via normal registration
pull/22641/head
blizzz 4 years ago committed by GitHub
commit 3eb748fc39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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'))];
}

Loading…
Cancel
Save