Skip to content

Commit

Permalink
feat(invitation): update authorization policy in InvitationController
Browse files Browse the repository at this point in the history
Technical user/clients were now able to use endpoint.

Refs: eclipse-tractusx#932
  • Loading branch information
typecastcloud committed Sep 4, 2024
1 parent 7c71e1a commit 070cb92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public InvitationController(IInvitationBusinessLogic logic)
/// <response code="409">user is not associated with company.</response>
[HttpPost]
[Authorize(Roles = "invite_new_partner")]
[Authorize(Policy = PolicyTypes.CompanyUser)]
[Authorize(Policy = PolicyTypes.ValidCompany)]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ErrorResponse), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(ErrorResponse), StatusCodes.Status500InternalServerError)]
Expand Down

0 comments on commit 070cb92

Please sign in to comment.