Skip to content

Commit

Permalink
fix: correction régression màj liste des espaces de travail #517
Browse files Browse the repository at this point in the history
  • Loading branch information
ocruze committed Dec 20, 2024
1 parent 84db94b commit 833c514
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Controller/Entrepot/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public function getCurrentUser(): JsonResponse
/** @var User */
$user = $this->getUser();

// $apiUserInfo = $this->userApiService->getMe();
$apiUserInfo = $this->userApiService->getMe();

// if (array_key_exists('communities_member', $apiUserInfo)) {
// $user->setCommunitiesMember($apiUserInfo['communities_member']);
// }
if (array_key_exists('communities_member', $apiUserInfo)) {
$user->setCommunitiesMember($apiUserInfo['communities_member']);
}

return $this->json($user);
}
Expand Down

0 comments on commit 833c514

Please sign in to comment.