diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-05-20 18:07:24 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-05-20 18:07:24 +0200 |
commit | 8f11d2a39b7eef8120fec918c4e2e4f02bcbd633 (patch) | |
tree | 94a7eaba00649cf76eeae378ca63f7ace9e8b664 /apps/federatedfilesharing | |
parent | ae7f89fd9f2bb87c0254f5fa087d0d9472612644 (diff) | |
download | nextcloud-server-8f11d2a39b7eef8120fec918c4e2e4f02bcbd633.tar.gz nextcloud-server-8f11d2a39b7eef8120fec918c4e2e4f02bcbd633.zip |
Only show sharing section if it has content
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/Settings/Personal.php | 3 |
1 files changed, 3 insertions, 0 deletions
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'; } |