We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11ee0ce commit 5f9ff96Copy full SHA for 5f9ff96
lib/private/Teams/TeamManager.php
@@ -152,12 +152,15 @@ public function getMemberships(string $userId): array {
152
153
$federatedUser = $this->circlesManager->getFederatedUser($userId, Member::TYPE_USER);
154
$this->circlesManager->startSession($federatedUser);
155
- return array_map(function (Circle $team) {
156
- return new Team(
+ $teams = [];
+ foreach ($this->circlesManager->getCircles() as $team) {
157
+ $teams[] = new Team(
158
$team->getSingleId(),
159
$team->getDisplayName(),
160
$this->urlGenerator->linkToRouteAbsolute('contacts.contacts.directcircle', ['singleId' => $team->getSingleId()]),
161
);
- }, $this->circlesManager->getCircles());
162
+ }
163
+
164
+ return $teams;
165
}
166
0 commit comments