From 2438f082e0d1677085a6d5f5e874848b1fd185b9 Mon Sep 17 00:00:00 2001 From: Hossein Azizabadi Farahani Date: Tue, 26 Nov 2024 13:55:27 +0330 Subject: [PATCH] Fix edit roles by admin --- src/Handler/Admin/Profile/EditHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handler/Admin/Profile/EditHandler.php b/src/Handler/Admin/Profile/EditHandler.php index bf94c71..27a933b 100644 --- a/src/Handler/Admin/Profile/EditHandler.php +++ b/src/Handler/Admin/Profile/EditHandler.php @@ -44,7 +44,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface // Update account role if (isset($requestBody['roles']) && !empty($requestBody['roles'])) { - $this->accountService->updateAccountRoles($requestBody['roles'], $updatedAccount, 'api', $operator); + $this->accountService->updateAccountRoles($requestBody['roles'], $updatedAccount, 'all', $operator); } return new JsonResponse(