Skip to content

Commit

Permalink
Merge pull request #573 from osu-tournament-rating/hotfix/tournaments…
Browse files Browse the repository at this point in the history
…-get-claims

Fix claims for /tournaments GET
  • Loading branch information
hburn7 authored Dec 26, 2024
2 parents c1a653d + 8b5fef0 commit 29f9fb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions API/Controllers/TournamentsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ IAdminNoteService adminNoteService
/// <remarks>Results will not include match data</remarks>
/// <response code="200">Returns all tournaments which fit the request query</response>
[HttpGet]
[Authorize(Roles = $"{OtrClaims.Roles.User}, {OtrClaims.Roles.Client}")]
[ProducesResponseType<IEnumerable<TournamentDTO>>(StatusCodes.Status200OK)]
public async Task<IActionResult> ListAsync([FromQuery] TournamentRequestQueryDTO requestQuery) =>

Check notice on line 30 in API/Controllers/TournamentsController.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Type member is never used (non-private accessibility)

Method 'ListAsync' is never used
Ok(await tournamentsService.GetAsync(requestQuery));
Expand Down

0 comments on commit 29f9fb0

Please sign in to comment.