Skip to content

Commit

Permalink
Added the current email to exclude in the validation of the use profi…
Browse files Browse the repository at this point in the history
…le patch.
  • Loading branch information
ruslanbaidan committed Aug 30, 2024
1 parent e9818bc commit b6d2079
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controller/ApiUserProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public function getList()

public function patchList($data)
{
$this->validatePostParams($this->patchProfileDataInputValidator, $data);
$this->validatePostParams(
$this->patchProfileDataInputValidator->setExcludeFilter(['email' => $this->connectedUser->getEmail()]),
$data
);

$this->userProfileService->updateMyData($data);

Expand Down

0 comments on commit b6d2079

Please sign in to comment.