Skip to content

Commit

Permalink
fix(getAppRoles): change permissions (#827)
Browse files Browse the repository at this point in the history
permission 'view_client_roles' has been changed for the following APIs

GET /api/apps/AppChange/{appId}/roles => new permission validation as 'edit_apps'
GET /api/apps/AppReleaseProcess/{appId}/roles => new permission validation as 'add_apps'

[Refs: 826](#826)
  • Loading branch information
tfjanjua authored Jul 10, 2024
1 parent e1e9780 commit 7e1447a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public async Task<NoContentResult> CreateActiveAppDocumentAsync([FromRoute] Guid
/// <response code="400">The language does not exist.</response>
/// <response code="404">The app was not found.</response>
[HttpGet]
[Authorize(Roles = "view_client_roles")]
[Authorize(Roles = "edit_apps")]
[Authorize(Policy = PolicyTypes.ValidCompany)]
[Route("{appId}/roles")]
[ProducesResponseType(typeof(IEnumerable<ActiveAppRoleDetails>), StatusCodes.Status200OK)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public async Task<NoContentResult> CreateAndUpdateTechnicalUserProfiles([FromRou
/// <response code="404">The app was not found.</response>
/// <response code="403">The app is not the provider of the company</response>
[HttpGet]
[Authorize(Roles = "view_client_roles")]
[Authorize(Roles = "add_apps")]
[Authorize(Policy = PolicyTypes.ValidCompany)]
[Route("{appId}/roles")]
[ProducesResponseType(typeof(IEnumerable<ActiveAppRoleDetails>), StatusCodes.Status200OK)]
Expand Down

0 comments on commit 7e1447a

Please sign in to comment.