Skip to content

Commit a8c14c3

Browse files
committed
issue during last push
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent c3999f6 commit a8c14c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ private function getSharesInDir(Node $folder): DataResponse {
631631
$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, Share::SHARE_TYPE_USER, $node, true, -1, 0));
632632
$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, Share::SHARE_TYPE_GROUP, $node, true, -1, 0));
633633
$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, Share::SHARE_TYPE_LINK, $node, true, -1, 0));
634-
$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, Share::SHARE_TYPE_EMAIL, $node, false, -1, 0));
634+
if ($this->shareManager->shareProviderExists(Share::SHARE_TYPE_EMAIL)) {
635635
$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, Share::SHARE_TYPE_EMAIL, $node, true, -1, 0));
636636
}
637637
if ($this->shareManager->outgoingServer2ServerSharesAllowed()) {

0 commit comments

Comments
 (0)