mirror of
https://github.com/nextcloud/server.git
synced 2026-04-02 23:55:54 -04:00
Merge pull request #4395 from nextcloud/fix_4394
Do not show empty admin sections
This commit is contained in:
commit
e91b8b452c
1 changed files with 4 additions and 0 deletions
|
|
@ -135,6 +135,10 @@ class AdminSettingsController extends Controller {
|
|||
/** @var \OC\Settings\Section[] $prioritizedSections */
|
||||
foreach($sections as $prioritizedSections) {
|
||||
foreach ($prioritizedSections as $section) {
|
||||
if (empty($this->settingsManager->getAdminSettings($section->getID()))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$icon = '';
|
||||
if ($section instanceof IIconSection) {
|
||||
$icon = $section->getIcon();
|
||||
|
|
|
|||
Loading…
Reference in a new issue