feat(perm): allow anyone to edit owned data
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
5c7db2afc6
commit
1e0f97cdef
4 changed files with 4 additions and 4 deletions
|
|
@ -110,7 +110,7 @@ export class QuotationPayment extends Controller {
|
|||
}
|
||||
|
||||
@Put("{paymentId}")
|
||||
@Security("keycloak", MANAGE_ROLES)
|
||||
@Security("keycloak")
|
||||
async updatePayment(
|
||||
@Path() paymentId: string,
|
||||
@Body() body: { amount?: number; date?: Date; paymentStatus?: PaymentStatus },
|
||||
|
|
|
|||
|
|
@ -667,7 +667,7 @@ export class QuotationController extends Controller {
|
|||
}
|
||||
|
||||
@Put("{quotationId}")
|
||||
@Security("keycloak", MANAGE_ROLES)
|
||||
@Security("keycloak")
|
||||
async editQuotation(
|
||||
@Request() req: RequestWithUser,
|
||||
@Path() quotationId: string,
|
||||
|
|
|
|||
|
|
@ -400,7 +400,7 @@ export class CreditNoteController extends Controller {
|
|||
}
|
||||
|
||||
@Put("{creditNoteId}")
|
||||
@Security("keycloak", MANAGE_ROLES)
|
||||
@Security("keycloak")
|
||||
async updateCreditNote(
|
||||
@Request() req: RequestWithUser,
|
||||
@Path() creditNoteId: string,
|
||||
|
|
|
|||
|
|
@ -579,7 +579,7 @@ export class DebitNoteController extends Controller {
|
|||
}
|
||||
|
||||
@Put("{debitNoteId}")
|
||||
@Security("keycloak", MANAGE_ROLES)
|
||||
@Security("keycloak")
|
||||
async updateDebitNote(
|
||||
@Request() req: RequestWithUser,
|
||||
@Path() debitNoteId: string,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue