From 5f5f767e145938959a0f17d3abe1a25091c6779b Mon Sep 17 00:00:00 2001 From: Vinicius Rosa Date: Tue, 7 Dec 2021 19:37:11 +1100 Subject: [PATCH] fix(core): Add Permission.ReadProduct to Allow decorator of TaxRateResolver.taxRates (#1258) --- packages/core/src/api/resolvers/admin/tax-rate.resolver.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/core/src/api/resolvers/admin/tax-rate.resolver.ts b/packages/core/src/api/resolvers/admin/tax-rate.resolver.ts index 6f9982a2b5..f1606ef457 100644 --- a/packages/core/src/api/resolvers/admin/tax-rate.resolver.ts +++ b/packages/core/src/api/resolvers/admin/tax-rate.resolver.ts @@ -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> { + @Allow(Permission.ReadSettings, Permission.ReadCatalog, Permission.ReadProduct, Permission.ReadTaxRate) + async taxRates( + @Ctx() ctx: RequestContext, + @Args() args: QueryTaxRatesArgs, + ): Promise> { return this.taxRateService.findAll(ctx, args.options || undefined); }