File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,8 @@ protected function getQueryBuilder(Request $request): QueryBuilder
308308 ->leftJoin ('t.category ' , 'tc ' )
309309 ->leftJoin ('t.contests ' , 'c ' )
310310 ->leftJoin ('tc.contests ' , 'cc ' )
311- ->select ('t, ta ' );
311+ ->select ('t, ta ' )
312+ ->andWhere ('t.enabled = 1 ' );
312313
313314 if ($ request ->query ->has ('category ' )) {
314315 $ queryBuilder
Original file line number Diff line number Diff line change @@ -241,6 +241,10 @@ public function viewAction(
241241 throw new NotFoundHttpException (sprintf ('Team with ID %s not found ' , $ teamId ));
242242 }
243243
244+ if (!$ team ->getEnabled ()) {
245+ $ this ->addFlash ('danger ' , 'Team is disabled and currently excluded from the scoreboard ' );
246+ }
247+
244248 $ data = [
245249 'refresh ' => [
246250 'after ' => 15 ,
You can’t perform that action at this time.
0 commit comments