diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-05-21 10:33:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 10:33:07 +0200 |
commit | ac92603014268a13a9b31beb8bd9dd26cbd84282 (patch) | |
tree | 346c4577801b17f7e7cb8e72cc585124e178ad55 /apps | |
parent | 50dbdeea46b3891fad9793899ddcdcf20586f2d7 (diff) | |
parent | 8f11d2a39b7eef8120fec918c4e2e4f02bcbd633 (diff) | |
download | nextcloud-server-ac92603014268a13a9b31beb8bd9dd26cbd84282.tar.gz nextcloud-server-ac92603014268a13a9b31beb8bd9dd26cbd84282.zip |
Merge pull request #15638 from nextcloud/bugfix/7965/sharing-hide-if-empty
Only show sharing section if it has content
Diffstat (limited to 'apps')
-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'; } |