From 833c51498cac71143ccafc542ae04ef2711ff925 Mon Sep 17 00:00:00 2001 From: Orka Arnest CRUZE Date: Fri, 20 Dec 2024 10:34:06 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20correction=20r=C3=A9gression=20m=C3=A0j?= =?UTF-8?q?=20liste=20des=20espaces=20de=20travail=20#517?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Controller/Entrepot/UserController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Controller/Entrepot/UserController.php b/src/Controller/Entrepot/UserController.php index e3e301cd..a82cff7f 100644 --- a/src/Controller/Entrepot/UserController.php +++ b/src/Controller/Entrepot/UserController.php @@ -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); }