fix form request
This commit is contained in:
@@ -11,9 +11,9 @@ class ConfirmPaymentInfoRequest extends FormRequest
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(Accident $accident): bool
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $accident->status === AccidentStates::SODOR_NAME_BIME_VA_DAGHI->value;
|
||||
return $this->accident->status === AccidentStates::SODOR_NAME_BIME_VA_DAGHI->value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user