diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php index fe9dc0cdfb..3f277a852b 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()]; } }