Skip to content

Commit b24d07c

Browse files
committed
Fix checking whether the ranking is enabled on team scoreboard.
1 parent c4d5da0 commit b24d07c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webapp/src/Controller/Team/ScoreboardController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(
3333
#[Route(path: '/scoreboard', name: 'team_scoreboard')]
3434
public function scoreboardAction(Request $request): Response
3535
{
36-
if ($this->config->get('enable_ranking')) {
36+
if (!$this->config->get('enable_ranking')) {
3737
throw new BadRequestHttpException('Scoreboard is not available.');
3838
}
3939

@@ -56,7 +56,7 @@ public function scoreboardAction(Request $request): Response
5656
#[Route(path: '/team/{teamId<\d+>}', name: 'team_team')]
5757
public function teamAction(Request $request, int $teamId): Response
5858
{
59-
if ($this->config->get('enable_ranking')) {
59+
if (!$this->config->get('enable_ranking')) {
6060
throw new BadRequestHttpException('Scoreboard is not available.');
6161
}
6262

0 commit comments

Comments
 (0)