Skip to content

Commit db318fb

Browse files
nickygerritsenvmcj
authored andcommitted
When a contest is locked, it doesn't have any actions.
(cherry picked from commit ea71459)
1 parent 0cf958b commit db318fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Controller/Jury/ContestController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public function indexAction(Request $request): Response
379379
'upcoming_contest' => $upcomingContest,
380380
'contests_table' => $contests_table,
381381
'table_fields' => $table_fields,
382-
'num_actions' => $this->isGranted('ROLE_ADMIN') ? 2 : 0,
382+
'num_actions' => $this->isGranted('ROLE_ADMIN') && !$contest->isLocked() ? 2 : 0,
383383
]);
384384
}
385385

0 commit comments

Comments
 (0)