feat: Add authorization checks to admin and player actions

This commit is contained in:
2026-03-27 13:10:29 -07:00
parent 36d7b311f7
commit 54fb92d1a1
4 changed files with 49 additions and 3 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ module EuchreCamp
won = player_on_team_1 ? (match[:team_1_score] > match[:team_2_score]) : (match[:team_2_score] > match[:team_1_score])
{
date: match[:played_at] || match[:created_at],
date: match[:played_at],
team_1: team_1_players,
team_2: team_2_players,
score: "#{match[:team_1_score]}-#{match[:team_2_score]}",