Skip to content

Commit

Permalink
fix webauthn phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Sep 23, 2024
1 parent 6bd1f12 commit a66fd17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Requests/WebAuthn/EditCredentialRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class EditCredentialRequest extends BaseApiRequest
public function authorize(): bool
{
return Gate::check(UserPolicy::CAN_EDIT, [User::class]) &&
($this->credential->authenticatable_id === Auth::id());
($this->credential->user_id === Auth::id());
}

public function rules(): array
Expand Down

0 comments on commit a66fd17

Please sign in to comment.