Nasconde dall'hub le partite con risultato già inserito.

Restano avviabili solo le gare in ritardo senza punteggio, non quelle già terminate dal portale.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-06 10:13:10 +02:00
co-authored by Cursor
parent 24c6ce4da0
commit ce81bb5789
5 changed files with 51 additions and 4 deletions
@@ -16,7 +16,7 @@ module Public
Tournaments::Entitlements.new(@club).assert_writable!
match = @tournament.matches.find(params[:match_id])
attrs = match_params
if match.played? || match.result_status.to_s.start_with?("walkover")
if match.result_recorded?
attrs = attrs.except(:home_participant_id, :away_participant_id)
end
match.update!(attrs)