Skip to content

Commit

Permalink
Fix response array key
Browse files Browse the repository at this point in the history
  • Loading branch information
pdavide committed May 29, 2023
1 parent 644dea4 commit ca9d9f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ protected function storeMethod(StoreUserRequest $request, PublicAdministration $
$redirectUrl = $this->getRoleAwareUrl('users.index', [], $publicAdministration);
}

// If existingUser is filled the user is already in the database
// If existingUser is filled, the user is already in the database
if (isset($validatedData['existingUser']) && isset($validatedData['existingUser']->email)) {
$user = $validatedData['existingUser'];
$userInCurrentPublicAdministration = $user->publicAdministrationsWithSuspended->where('id', $publicAdministration->id)->isNotEmpty();
Expand All @@ -598,7 +598,7 @@ protected function storeMethod(StoreUserRequest $request, PublicAdministration $
'error_description' => 'User already exists in the current public administration',
'title' => __("Non è possibile inoltrare l'invito"),
'message' => __("L'utente fa già parte di questa pubblica amministrazione."),
'redirectUri' => $redirectUrl ?? null,
'redirectUrl' => $redirectUrl ?? null,
];
}

Expand Down

0 comments on commit ca9d9f1

Please sign in to comment.