ParticipationPolicy fix viewWonList
This commit is contained in:
parent
de748bb9bb
commit
2ef26bc270
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class ParticipationPolicy
|
|||
public function viewWonList(Customer $authUser): bool
|
||||
{
|
||||
return (bool)$authUser->participations()->where(fn (Builder $q) =>
|
||||
$q->whereHas('product')->orWhereHas('discount'))->count();
|
||||
$q->whereHas('instantWin')->orWhereHas('discount'))->count();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue