Skip to content

Commit

Permalink
fix(offerSubscription): role changed (eclipse-tractusx#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfjanjua committed Oct 23, 2024
1 parent fbddbd3 commit eb00d41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/marketplace/Apps.Service/Controllers/AppsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public Task<AppProviderSubscriptionDetailData> GetSubscriptionDetailForProvider(
/// <response code="403">User's company does not provide the app.</response>
/// <response code="404">No app or subscription found.</response>
[HttpGet]
[Authorize(Roles = "subscribe_apps")]
[Authorize(Roles = "view_subscription")]
[Authorize(Policy = PolicyTypes.ValidCompany)]
[Route("{appId}/subscription/{subscriptionId}/subscriber")]
[ProducesResponseType(typeof(SubscriberSubscriptionDetailData), StatusCodes.Status200OK)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public Task<ProviderSubscriptionDetailData> GetSubscriptionDetailForProvider([Fr
/// <response code="403">User's company does not provide the service.</response>
/// <response code="404">No service or subscription found.</response>
[HttpGet]
[Authorize(Roles = "subscribe_service")]
[Authorize(Roles = "view_service_subscriptions")]
[Authorize(Policy = PolicyTypes.ValidCompany)]
[Route("{serviceId}/subscription/{subscriptionId}/subscriber")]
[ProducesResponseType(typeof(SubscriberSubscriptionDetailData), StatusCodes.Status200OK)]
Expand Down

0 comments on commit eb00d41

Please sign in to comment.