Compare commits
2 commits
master
...
fix-ip-che
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c9ef056f9 | ||
|
|
91a8b7f539 |
2 changed files with 4 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ class ParticipationPolicy
|
|||
if ($settings->nb_participation_player) {
|
||||
$playerCanParticipateAccount = (Participation::query()->whereHas(
|
||||
'customer',
|
||||
fn (Builder $q) => $q->where('customer_id', $authUser->id)
|
||||
fn(Builder $q) => $q->where('customer_id', $authUser->id)
|
||||
)->count() < $settings->nb_participation_player);
|
||||
}
|
||||
// * Participation par IP
|
||||
|
|
@ -49,7 +49,7 @@ class ParticipationPolicy
|
|||
if ($settings->nb_participation_ip) {
|
||||
$playerCanParticipateIp = (Participation::query()->whereHas(
|
||||
'customer',
|
||||
fn (Builder $q) => $q->where('ip', app('clientIp'))
|
||||
fn(Builder $q) => $q->where('ip', app('clientIp'))->where('customer_id', $authUser->id)
|
||||
)->count() < $settings->nb_participation_ip);
|
||||
}
|
||||
$playerCanParticipate = (!empty($playerCanParticipateAccount) && !empty($playerCanParticipateIp)) ?
|
||||
|
|
@ -94,7 +94,7 @@ class ParticipationPolicy
|
|||
->where('prize_sent', false)
|
||||
->whereHas(
|
||||
'customer',
|
||||
fn (Builder $q) =>
|
||||
fn(Builder $q) =>
|
||||
$q->where('id', $authUser->id)
|
||||
)->where('id', $model->id)->whereHas('instantWin')
|
||||
->where(function (Builder $q) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "uwil/gen-game-web",
|
||||
"version": "2.4.9",
|
||||
"version": "2.4.10",
|
||||
"type": "project",
|
||||
"description": "Game generator",
|
||||
"support": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue