]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only show sharing section if it has content 15650/head
authorJulius Härtl <jus@bitgrid.net>
Mon, 20 May 2019 16:07:24 +0000 (18:07 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Tue, 21 May 2019 08:34:40 +0000 (08:34 +0000)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/federatedfilesharing/lib/Settings/Personal.php
lib/private/Settings/Manager.php

index 96c762c9e4a42a01068270df810383bc57784715..d50fa7202f3c640eb208d898adc4dbab727d2f9d 100644 (file)
@@ -80,6 +80,9 @@ class Personal implements ISettings {
         * @since 9.1
         */
        public function getSection() {
+               if (!$this->federatedShareProvider->isOutgoingServer2serverShareEnabled()) {
+                       return null;
+               }
                return 'sharing';
        }
 
index 42ec16e223b72881c9849983c36b2e7f91103957..7281d7bf72e3bb24ce6de42268809e57bdbd9a24 100644 (file)
@@ -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()] = [];
                        }