diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-05-31 17:38:41 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-05-31 17:38:45 +0200 |
commit | db4e8d67e070775f1287f3df37b471dc5b14a553 (patch) | |
tree | dbd840e8188ba36b730fb42275b28e95299935d6 /apps/federatedfilesharing/lib | |
parent | 0229f20fdcfabaf4a54105cb687ac5068d84e1d7 (diff) | |
download | nextcloud-server-db4e8d67e070775f1287f3df37b471dc5b14a553.tar.gz nextcloud-server-db4e8d67e070775f1287f3df37b471dc5b14a553.zip |
Show share settings only if incoming federated shares are allowed
Fixes #15802
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r-- | apps/federatedfilesharing/lib/Settings/Personal.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/federatedfilesharing/lib/Settings/Personal.php b/apps/federatedfilesharing/lib/Settings/Personal.php index d50fa7202f3..b4a863931b0 100644 --- a/apps/federatedfilesharing/lib/Settings/Personal.php +++ b/apps/federatedfilesharing/lib/Settings/Personal.php @@ -63,7 +63,6 @@ class Personal implements ISettings { $url = 'https://nextcloud.com/sharing#' . $cloudID; $parameters = [ - 'outgoingServer2serverShareEnabled' => $this->federatedShareProvider->isOutgoingServer2serverShareEnabled(), 'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]), 'message_without_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID', [$cloudID]), 'logoPath' => $this->defaults->getLogo(), @@ -80,10 +79,11 @@ class Personal implements ISettings { * @since 9.1 */ public function getSection() { - if (!$this->federatedShareProvider->isOutgoingServer2serverShareEnabled()) { - return null; + if ($this->federatedShareProvider->isIncomingServer2serverShareEnabled() || + $this->federatedShareProvider->isIncomingServer2serverGroupShareEnabled()) { + return 'sharing'; } - return 'sharing'; + return null; } /** |