Skip to content

Commit 6860b5b

Browse files
Merge pull request nextcloud#50924 from nextcloud/backport/50922/stable29
[stable29] fix(files_sharing): Also list deleted team shares
2 parents e906134 + de99a25 commit 6860b5b

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)