Skip to content
Snippets Groups Projects
Unverified Commit ac926030 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #15638 from nextcloud/bugfix/7965/sharing-hide-if-empty

Only show sharing section if it has content
parents 50dbdeea 8f11d2a3
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,9 @@ class Personal implements ISettings {
* @since 9.1
*/
public function getSection() {
if (!$this->federatedShareProvider->isOutgoingServer2serverShareEnabled()) {
return null;
}
return 'sharing';
}
......
......@@ -171,6 +171,10 @@ class Manager implements IManager {
continue;
}
if ($setting->getSection() === null) {
continue;
}
if (!isset($this->settings[$settingsType][$setting->getSection()])) {
$this->settings[$settingsType][$setting->getSection()] = [];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment