feat(perm): allow anyone to edit owned data
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s

This commit is contained in:
Methapon2001 2025-07-03 16:20:23 +07:00
parent 5c7db2afc6
commit 1e0f97cdef
4 changed files with 4 additions and 4 deletions

View file

@ -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 },

View file

@ -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,

View file

@ -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,

View file

@ -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,