Skip to content

Commit

Permalink
Fix routing for group report (joinrpg#1541)
Browse files Browse the repository at this point in the history
  • Loading branch information
leotsarev committed Oct 6, 2021
1 parent e44cf40 commit b46241a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/JoinRpg.Portal/Controllers/GameGroupsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ public async Task<ActionResult> Index(int projectId, int? characterGroupId)
}

[MasterAuthorize]
[HttpGet("~/{projectId}/roles/report")]
public Task<ActionResult> Report(int projectId) => Report(projectId, null);

[HttpGet, MasterAuthorize]
[HttpGet("~/{projectId}/roles/{characterGroupId:int}/report")]
[HttpGet("~/{projectId}/roles/all/report")]
public async Task<ActionResult> Report(int projectId, int? characterGroupId)
{
var field = await ProjectRepository.LoadGroupWithTreeAsync(projectId, characterGroupId);
Expand Down

0 comments on commit b46241a

Please sign in to comment.