Skip to content

Commit f774a53

Browse files
author
Richand101
authored
Merge pull request #699 from bcgov/ricander
@DSS-225 - Added appropriate permissions to Get platforms
2 parents 77f4261 + 433ec5f commit f774a53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/StrDss.Api/Controllers/OrganizationsController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ public async Task<ActionResult<StrRequirementsDto>> GetStrRequirements(double lo
7979
}
8080

8181

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

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

0 commit comments

Comments
 (0)