feat: Add authorization checks to admin and player actions
This commit is contained in:
@@ -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]}",
|
||||
|
||||
Reference in New Issue
Block a user