Skip to content

Commit

Permalink
@DSS-225 - Added appropriate permissions to Get platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Anderson authored and Rick Anderson committed Oct 10, 2024
1 parent 77f4261 commit 433ec5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/StrDss.Api/Controllers/OrganizationsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ public async Task<ActionResult<StrRequirementsDto>> GetStrRequirements(double lo
}


[ApiAuthorize]
[ApiAuthorize(Permissions.PlatformRead)] //TODO: use platform_read permission when it's ready in the database
[HttpGet("platforms")]
public async Task<ActionResult<List<PlatformViewDto>>> GetPlatforms(int pageSize = 10, int pageNumber = 1, string orderBy = "OrganizationNm", string direction = "asc")
{
var platforms = await _orgService.GetPlatforms(pageSize, pageNumber, orderBy, direction);
return Ok(platforms);
}

[ApiAuthorize]
[ApiAuthorize(Permissions.PlatformRead)] //TODO: use platform_read permission when it's ready in the database
[HttpGet("platforms/{id}")]
public async Task<ActionResult<PlatformViewDto>> GetPlatform(long id)
{
Expand Down

0 comments on commit 433ec5f

Please sign in to comment.