Skip to content

Commit 0dcb6f4

Browse files
committed
fix(Teams): use string team IDs
Signed-off-by: Git'Fellow <[email protected]>
1 parent 89fcefb commit 0dcb6f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/private/Teams/TeamManager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ public function getSharedWithList(array $teams, string $userId): array {
9595
$resources[] = $provider->getSharedWithList($teams, $userId);
9696
} else {
9797
foreach ($teams as $team) {
98-
$resources[] = [$team->getId() => $provider->getSharedWith($team->getId())];
98+
// Handle both Team objects and string IDs
99+
$teamId = (string)($team instanceof Team ? $team->getId() : $team);
100+
$resources[] = [$teamId => $provider->getSharedWith($teamId)];
99101
}
100102
}
101103
}

0 commit comments

Comments
 (0)