diff options
author | Adam Serbinski <adam@serbinski.com> | 2022-05-27 11:29:15 -0400 |
---|---|---|
committer | Adam Serbinski <37986043+ASerbinski@users.noreply.github.com> | 2024-03-21 18:25:31 -0400 |
commit | 9c528d412c677b686d0776a43ec9567d6639a083 (patch) | |
tree | bfe7a6fe53aff33a1f4004b49d30bd2fb594191a /apps/sharebymail/lib | |
parent | 26ae5e6dfbdd482e6fbfe1cd6a1161ff39f984cc (diff) | |
download | nextcloud-server-9c528d412c677b686d0776a43ec9567d6639a083.tar.gz nextcloud-server-9c528d412c677b686d0776a43ec9567d6639a083.zip |
ShareByMailProvider: getAccessList: add token to returned array
This allows the share URI to be regenerated.
Signed-off-by: Adam Serbinski <adam@serbinski.com>
Diffstat (limited to 'apps/sharebymail/lib')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index 8c5962e22fc..a8c1174e289 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -1098,7 +1098,7 @@ class ShareByMailProvider implements IShareProvider { } $qb = $this->dbConnection->getQueryBuilder(); - $qb->select('share_with', 'file_source') + $qb->select('share_with', 'file_source', 'token') ->from('share') ->where($qb->expr()->eq('share_type', $qb->createNamedParameter(IShare::TYPE_EMAIL))) ->andWhere($qb->expr()->in('file_source', $qb->createNamedParameter($ids, IQueryBuilder::PARAM_INT_ARRAY))) @@ -1114,7 +1114,8 @@ class ShareByMailProvider implements IShareProvider { $mail[] = $row['share_with']; } else { $mail[$row['share_with']] = [ - 'node_id' => $row['file_source'] + 'node_id' => $row['file_source'], + 'token' => $row['token'] ]; } } |