Skip to content

Commit de99a25

Browse files
committed
fix(files_sharing): Also list deleted team shares
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 9cda726 commit de99a25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/files_sharing/lib/Controller/DeletedShareAPIController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,12 @@ private function formatShare(IShare $share): array {
191191
*/
192192
public function index(): DataResponse {
193193
$groupShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_GROUP, null, -1, 0);
194+
$teamShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_CIRCLE, null, -1, 0);
194195
$roomShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_ROOM, null, -1, 0);
195196
$deckShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_DECK, null, -1, 0);
196197
$sciencemeshShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_SCIENCEMESH, null, -1, 0);
197198

198-
$shares = array_merge($groupShares, $roomShares, $deckShares, $sciencemeshShares);
199+
$shares = array_merge($groupShares, $teamShares, $roomShares, $deckShares, $sciencemeshShares);
199200

200201
$shares = array_map(function (IShare $share) {
201202
return $this->formatShare($share);

0 commit comments

Comments
 (0)