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: #932
  • Loading branch information
typecastcloud committed Aug 15, 2024
1 parent 16884de commit fcea7eb
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 fcea7eb

Please sign in to comment.