From 8f11d2a39b7eef8120fec918c4e2e4f02bcbd633 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Mon, 20 May 2019 18:07:24 +0200 Subject: Only show sharing section if it has content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/federatedfilesharing/lib/Settings/Personal.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps') diff --git a/apps/federatedfilesharing/lib/Settings/Personal.php b/apps/federatedfilesharing/lib/Settings/Personal.php index 96c762c9e4a..d50fa7202f3 100644 --- a/apps/federatedfilesharing/lib/Settings/Personal.php +++ b/apps/federatedfilesharing/lib/Settings/Personal.php @@ -80,6 +80,9 @@ class Personal implements ISettings { * @since 9.1 */ public function getSection() { + if (!$this->federatedShareProvider->isOutgoingServer2serverShareEnabled()) { + return null; + } return 'sharing'; } -- cgit v1.2.3