X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-set-active-tournament.pl;h=3a15a939be00fe3a748287b0867546045d7524b9;hp=4405e4270c02b67c4eb11df39cd6760a8c5488eb;hb=bced2892820afbfdd4ead08712e1702fe88ee75d;hpb=3200c9792d41a6a7a5edea7747fd613fae609798 diff --git a/html/do-set-active-tournament.pl b/html/do-set-active-tournament.pl index 4405e42..3a15a93 100755 --- a/html/do-set-active-tournament.pl +++ b/html/do-set-active-tournament.pl @@ -4,13 +4,15 @@ use ccbs; use strict; use warnings; +ccbs::admin_only(); + my $dbh = ccbs::db_connect(); my $cgi = new CGI; my $tournament = $cgi->param('tournament'); $dbh->{AutoCommit} = 0; -$dbh->do('DELETE FROM bigscreen.active_rounds'); +$dbh->do('DELETE FROM bigscreen.active_groups'); $dbh->do('DELETE FROM bigscreen.active_tournament'); if ($tournament != -1) { $dbh->do('INSERT INTO bigscreen.active_tournament VALUES (?)', undef, $tournament);