Skip to content

Commit

Permalink
fix(acs): set correct ACS Action for update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Jan 8, 2025
1 parent 71a0ca2 commit d67ad5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/services/invoice_srv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ import {
} from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/file.js';
import { Readable, Transform } from 'node:stream';
import { InvoiceNumberService } from './invoice_number_srv.js';
import { ResourceAwaitQueue } from '../experimental/ResourceAwaitQueue.js';
import { ClientRegister } from '../experimental/ClientRegister.js';
import {
DefaultUrns,
type KnownUrns,
Expand All @@ -136,10 +138,8 @@ import {
DefaultSetting,
resolveInvoice,
parseSetting,
marshallProtobufAny,
} from '../utils.js';
import { ResourceAwaitQueue } from '../experimental/ResourceAwaitQueue.js';
import { ClientRegister } from '../experimental/ClientRegister.js';
import { marshallProtobufAny } from '../utils.js';


export type ProductNature = PhysicalProduct | VirtualProduct | ServiceProduct;
Expand Down Expand Up @@ -1097,7 +1097,7 @@ export class InvoiceService
@resolves_subject()
@injects_meta_data()
@access_controlled_function({
action: AuthZAction.CREATE,
action: AuthZAction.MODIFY,
operation: Operation.isAllowed,
context: InvoiceService.ACSContextFactory,
resource: DefaultResourceFactory('invoice'),
Expand All @@ -1114,7 +1114,7 @@ export class InvoiceService
@resolves_subject()
@injects_meta_data()
@access_controlled_function({
action: AuthZAction.CREATE,
action: AuthZAction.MODIFY,
operation: Operation.isAllowed,
context: InvoiceService.ACSContextFactory,
resource: DefaultResourceFactory('invoice'),
Expand Down

0 comments on commit d67ad5b

Please sign in to comment.