Skip to content

Commit 83fcf43

Browse files
authored
fix(Teams): Refactor team iteration to use team IDs
Signed-off-by: Git'Fellow <[email protected]>
1 parent 89fcefb commit 83fcf43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Teams/TeamManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public function getSharedWithList(array $teams, string $userId): array {
9494
if (method_exists($provider, 'getSharedWithList')) {
9595
$resources[] = $provider->getSharedWithList($teams, $userId);
9696
} else {
97-
foreach ($teams as $team) {
98-
$resources[] = [$team->getId() => $provider->getSharedWith($team->getId())];
97+
foreach ($teams as $teamId) {
98+
$resources[] = [$teamId => $provider->getSharedWith($teamId)];
9999
}
100100
}
101101
}

0 commit comments

Comments
 (0)