diff --git a/pkg/probo/actions.go b/pkg/probo/actions.go index 4c178c463..88a639855 100644 --- a/pkg/probo/actions.go +++ b/pkg/probo/actions.go @@ -295,8 +295,7 @@ const ( ActionCustomDomainDelete = "core:custom-domain:delete" // File actions - ActionFileGet = "core:file:get" - ActionFileDownloadUrl = "core:file:download-url" + ActionFileGet = "core:file:get" // Connector actions ActionConnectorInitiate = "core:connector:initiate" diff --git a/pkg/probo/policies.go b/pkg/probo/policies.go index b74266b5f..30a1dace9 100644 --- a/pkg/probo/policies.go +++ b/pkg/probo/policies.go @@ -76,7 +76,7 @@ var ViewerPolicy = policy.NewPolicy( ActionProcessingActivityGet, ActionProcessingActivityList, ActionDataProtectionImpactAssessmentGet, ActionDataProtectionImpactAssessmentList, ActionTransferImpactAssessmentGet, ActionTransferImpactAssessmentList, - ActionFileGet, ActionFileDownloadUrl, + ActionFileGet, ActionSlackConnectionList, ActionConnectorList, ActionRightsRequestGet, ActionRightsRequestList, ActionStatementOfApplicabilityGet, ActionStatementOfApplicabilityList, @@ -164,7 +164,7 @@ var AuditorPolicy = policy.NewPolicy( ActionProcessingActivityGet, ActionProcessingActivityList, ActionDataProtectionImpactAssessmentGet, ActionDataProtectionImpactAssessmentList, ActionTransferImpactAssessmentGet, ActionTransferImpactAssessmentList, - ActionFileGet, ActionFileDownloadUrl, + ActionFileGet, ActionStatementOfApplicabilityGet, ActionStatementOfApplicabilityList, ActionApplicabilityStatementGet, ActionApplicabilityStatementList, ActionRiskAssessmentGet, ActionRiskAssessmentList, diff --git a/pkg/server/api/console/v1/third_party_resolvers.go b/pkg/server/api/console/v1/third_party_resolvers.go index 4a4355195..307df272f 100644 --- a/pkg/server/api/console/v1/third_party_resolvers.go +++ b/pkg/server/api/console/v1/third_party_resolvers.go @@ -984,7 +984,7 @@ func (r *thirdPartyBusinessAssociateAgreementResolver) ThirdParty(ctx context.Co // FileURL is the resolver for the fileUrl field. func (r *thirdPartyBusinessAssociateAgreementResolver) FileURL(ctx context.Context, obj *types.ThirdPartyBusinessAssociateAgreement) (string, error) { - scope, err := r.authorize(ctx, obj.ID, probo.ActionFileDownloadUrl) + scope, err := r.authorize(ctx, obj.ID, probo.ActionFileGet) if err != nil { return "", err } @@ -1175,7 +1175,7 @@ func (r *thirdPartyDataPrivacyAgreementResolver) ThirdParty(ctx context.Context, // FileURL is the resolver for the fileUrl field. func (r *thirdPartyDataPrivacyAgreementResolver) FileURL(ctx context.Context, obj *types.ThirdPartyDataPrivacyAgreement) (string, error) { - scope, err := r.authorize(ctx, obj.ID, probo.ActionFileDownloadUrl) + scope, err := r.authorize(ctx, obj.ID, probo.ActionFileGet) if err != nil { return "", err }