summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-12-01 12:17:56 +0100
committerGitHub <noreply@github.com>2016-12-01 12:17:56 +0100
commita87638c6ab6e3b14be6d6622b9df8f86ddc2ac05 (patch)
treeefac52307ce3467b80d8b3457e3c2d2d0f9b3a83 /lib
parent220452e9438062f8201ec27ec606f21908af12a6 (diff)
parent05b86faccc6d05f8696236be7bb3232a2ef4778e (diff)
downloadnextcloud-server-a87638c6ab6e3b14be6d6622b9df8f86ddc2ac05.tar.gz
nextcloud-server-a87638c6ab6e3b14be6d6622b9df8f86ddc2ac05.zip
Merge pull request #2371 from nextcloud/issue-2369-add-share-indicator-for-mail-shares
Add share indicator for mail shares
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/ProviderFactory.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php
index fe9dc0cdfb2..3f277a852b3 100644
--- a/lib/private/Share20/ProviderFactory.php
+++ b/lib/private/Share20/ProviderFactory.php
@@ -206,6 +206,10 @@ class ProviderFactory implements IProviderFactory {
}
public function getAllProviders() {
+ $shareByMail = $this->getShareByMailProvider();
+ if ($shareByMail !== null) {
+ return [$this->defaultShareProvider(), $this->federatedShareProvider(), $shareByMail];
+ }
return [$this->defaultShareProvider(), $this->federatedShareProvider()];
}
}