Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(offerSubscription): change role (#69) #1110

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/apps-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2189,7 +2189,7 @@ paths:
get:
tags:
- Apps
summary: 'Retrieves the details of a subscription (Authorization required - Roles: subscribe_apps)'
summary: 'Retrieves the details of a subscription (Authorization required - Roles: view_subscription)'
description: 'Example: GET: /api/apps/{appId}/subscription/{subscriptionId}/subscriber'
parameters:
- name: appId
Expand Down
2 changes: 1 addition & 1 deletion docs/api/services-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ paths:
get:
tags:
- Services
summary: 'Retrieves the details of a subscription (Authorization required - Roles: subscribe_service)'
summary: 'Retrieves the details of a subscription (Authorization required - Roles: view_service_subscriptions)'
description: 'Example: GET: /api/services/{serviceId}/subscription/{subscriptionId}/subscriber'
parameters:
- name: serviceId
Expand Down
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
Loading