diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index 3704de4309f30..e7f1db25a9b8b 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -1108,6 +1108,7 @@ public function getAccessList($nodes, $currentAccess): array { )); $cursor = $qb->executeQuery(); + $public = $cursor->rowCount() > 0; $mail = []; while ($row = $cursor->fetch()) { if ($currentAccess === false) { @@ -1121,7 +1122,7 @@ public function getAccessList($nodes, $currentAccess): array { } $cursor->closeCursor(); - return ['public' => $mail]; + return ['public' => $public, 'mail' => $mail]; } public function getAllShares(): iterable {