Skip to content

Commit

Permalink
Merge pull request #50922 from nextcloud/fix/show-deleted-team-shares
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored Feb 20, 2025
2 parents f5cc31c + 7e6608d commit 4f50b5f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,12 @@ private function formatShare(IShare $share): array {
#[NoAdminRequired]
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_values(array_map(function (IShare $share) {
return $this->formatShare($share);
Expand Down

0 comments on commit 4f50b5f

Please sign in to comment.