summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-05-31 17:38:41 +0200
committerMorris Jobke <hey@morrisjobke.de>2019-05-31 17:38:45 +0200
commitdb4e8d67e070775f1287f3df37b471dc5b14a553 (patch)
treedbd840e8188ba36b730fb42275b28e95299935d6 /apps/federatedfilesharing/lib
parent0229f20fdcfabaf4a54105cb687ac5068d84e1d7 (diff)
downloadnextcloud-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.php8
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;
}
/**