summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2025-03-04 14:38:25 +0100
committerGitHub <noreply@github.com>2025-03-04 14:38:25 +0100
commit6860b5bbbe0efb04ec8549fbe86cc7569269c1a5 (patch)
tree670bb7cbb486a4d1bc68acce30414041e5c12d41 /apps
parente906134afe10a0a97628cce3bbca6dd398637418 (diff)
parentde99a257f2a8d374e501fcd1236e70e361f9ef33 (diff)
downloadnextcloud-server-6860b5bbbe0efb04ec8549fbe86cc7569269c1a5.tar.gz
nextcloud-server-6860b5bbbe0efb04ec8549fbe86cc7569269c1a5.zip
Merge pull request #50924 from nextcloud/backport/50922/stable29
[stable29] fix(files_sharing): Also list deleted team shares
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/Controller/DeletedShareAPIController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/DeletedShareAPIController.php b/apps/files_sharing/lib/Controller/DeletedShareAPIController.php
index c405c382329..0a3953131d9 100644
--- a/apps/files_sharing/lib/Controller/DeletedShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/DeletedShareAPIController.php
@@ -191,11 +191,12 @@ class DeletedShareAPIController extends OCSController {
*/
public function index(): DataResponse {
$groupShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_GROUP, null, -1, 0);
+ $teamShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_CIRCLE, null, -1, 0);
$roomShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_ROOM, null, -1, 0);
$deckShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_DECK, null, -1, 0);
$sciencemeshShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_SCIENCEMESH, null, -1, 0);
- $shares = array_merge($groupShares, $roomShares, $deckShares, $sciencemeshShares);
+ $shares = array_merge($groupShares, $teamShares, $roomShares, $deckShares, $sciencemeshShares);
$shares = array_map(function (IShare $share) {
return $this->formatShare($share);