aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-20 18:07:24 +0200
committerJulius Härtl <jus@bitgrid.net>2019-05-20 18:07:24 +0200
commit8f11d2a39b7eef8120fec918c4e2e4f02bcbd633 (patch)
tree94a7eaba00649cf76eeae378ca63f7ace9e8b664 /apps/federatedfilesharing
parentae7f89fd9f2bb87c0254f5fa087d0d9472612644 (diff)
downloadnextcloud-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.php3
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';
}