Skip to content

Commit

Permalink
Fix validation rule for role
Browse files Browse the repository at this point in the history
Signed-off-by: pacoorozco <[email protected]>
  • Loading branch information
pacoorozco committed Feb 10, 2024
1 parent 4222a92 commit 615b3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Requests/UserUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function enabled(): bool

public function role(): Roles
{
$roleName = $this->string('role');
$roleName = $this->input('role');

return Roles::fromValue($roleName);
}
Expand Down

0 comments on commit 615b3ef

Please sign in to comment.