diff --git a/server/StrDss.Api/Controllers/OrganizationsController.cs b/server/StrDss.Api/Controllers/OrganizationsController.cs index 8bfa4df2..b2f27d40 100644 --- a/server/StrDss.Api/Controllers/OrganizationsController.cs +++ b/server/StrDss.Api/Controllers/OrganizationsController.cs @@ -79,7 +79,7 @@ public async Task> GetStrRequirements(double lo } - [ApiAuthorize] + [ApiAuthorize(Permissions.PlatformRead)] //TODO: use platform_read permission when it's ready in the database [HttpGet("platforms")] public async Task>> GetPlatforms(int pageSize = 10, int pageNumber = 1, string orderBy = "OrganizationNm", string direction = "asc") { @@ -87,7 +87,7 @@ public async Task>> GetPlatforms(int pageSize 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> GetPlatform(long id) {