Also return the ShareByMail provider when getting all

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-11-28 12:13:55 +01:00 committed by Roeland Jago Douma
parent 1aa874e4e3
commit 73007c401e
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 0 deletions

View File

@ -206,6 +206,10 @@ class ProviderFactory implements IProviderFactory {
} }
public function getAllProviders() { public function getAllProviders() {
$shareByMail = $this->getShareByMailProvider();
if ($shareByMail !== null) {
return [$this->defaultShareProvider(), $this->federatedShareProvider(), $shareByMail];
}
return [$this->defaultShareProvider(), $this->federatedShareProvider()]; return [$this->defaultShareProvider(), $this->federatedShareProvider()];
} }
} }