Skip to content

Commit

Permalink
Fix edit roles by admin
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Nov 26, 2024
1 parent e5613d0 commit 2438f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler/Admin/Profile/EditHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2438f08

Please sign in to comment.