Last version before the auth-pocalypse
This commit is contained in:
parent
70e28110cb
commit
11135e743c
11 changed files with 334 additions and 14 deletions
|
|
@ -3,7 +3,7 @@
|
|||
namespace App;
|
||||
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable; // already implements CanResetPassword
|
||||
use App\Season;
|
||||
use App\Payment;
|
||||
use App\Round;
|
||||
|
|
@ -134,18 +134,12 @@ class User extends Authenticatable
|
|||
$round_id = Round::getFirstIncompleteRound();
|
||||
$games = Game::where('round_id','=',$round_id)->get();
|
||||
|
||||
|
||||
|
||||
foreach ($games as $game) {
|
||||
$tipp = Tipp::where([['game_id','=',$game->id],['user_id','=',$user_id]])->first();
|
||||
|
||||
if ($tipp->score1 == -1 || $tipp->score2 == -1) {
|
||||
Log::info("!!! User ".$user_id." has a missing tipp for game_id ".$game->id.", round = ".$round_id);
|
||||
return 1;
|
||||
} else {
|
||||
if ($user_id==2) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
@ -176,4 +170,5 @@ class User extends Authenticatable
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue