Skip to content

Commit

Permalink
fix(core): Add Permission.ReadProduct to Allow decorator of TaxRateRe…
Browse files Browse the repository at this point in the history
…solver.taxRates (#1258)
  • Loading branch information
vrosa authored Dec 7, 2021
1 parent 5af2b12 commit 5f5f767
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/api/resolvers/admin/tax-rate.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ export class TaxRateResolver {
constructor(private taxRateService: TaxRateService) {}

@Query()
@Allow(Permission.ReadSettings, Permission.ReadCatalog, Permission.ReadTaxRate)
taxRates(@Ctx() ctx: RequestContext, @Args() args: QueryTaxRatesArgs): Promise<PaginatedList<TaxRate>> {
@Allow(Permission.ReadSettings, Permission.ReadCatalog, Permission.ReadProduct, Permission.ReadTaxRate)
async taxRates(
@Ctx() ctx: RequestContext,
@Args() args: QueryTaxRatesArgs,
): Promise<PaginatedList<TaxRate>> {
return this.taxRateService.findAll(ctx, args.options || undefined);
}

Expand Down

0 comments on commit 5f5f767

Please sign in to comment.