mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
ShareByMailProvider: getAccessList: set both array keys 'public' and 'mail'
To preserve prior behaviour where 'public' was set 'true' if there are any mail recipients. The 'mail' key will be an array of email recipients. Signed-off-by: Adam Serbinski <adam@serbinski.com>
This commit is contained in:
parent
34ca6bd46a
commit
01e32340af
1 changed files with 2 additions and 1 deletions
|
|
@ -1108,6 +1108,7 @@ class ShareByMailProvider implements IShareProvider {
|
|||
));
|
||||
$cursor = $qb->executeQuery();
|
||||
|
||||
$public = $cursor->rowCount() > 0;
|
||||
$mail = [];
|
||||
while ($row = $cursor->fetch()) {
|
||||
if ($currentAccess === false) {
|
||||
|
|
@ -1121,7 +1122,7 @@ class ShareByMailProvider implements IShareProvider {
|
|||
}
|
||||
$cursor->closeCursor();
|
||||
|
||||
return ['public' => $mail];
|
||||
return ['public' => $public, 'mail' => $mail];
|
||||
}
|
||||
|
||||
public function getAllShares(): iterable {
|
||||
|
|
|
|||
Loading…
Reference in a new issue