Bonus Score Entry

#20 Implement bonus scores
Allow users assigned to judge bonus scores access to the judging screen.
This commit is contained in:
Matt Young 2024-07-15 16:57:16 -05:00
parent 8d225ed08c
commit cd877db36c
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class BonusScoreDefinitionController extends Controller
public function judges()
{
$bonusScores = BonusScoreDefinition::all();
$users = User::all();
$users = User::orderBy('last_name')->orderBy('first_name')->get();
return view('admin.bonus-scores.judge-assignments', compact('bonusScores', 'users'));
}

View File

@ -129,7 +129,7 @@ class User extends Authenticatable implements MustVerifyEmail
public function isJudge(): bool
{
return $this->judgingAssignments()->count() > 0;
return $this->judgingAssignments()->count() > 0 || $this->bonusJudgingAssignments()->count() > 0;
}
/**