diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index bce1bde..01b66fa 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -576,7 +576,7 @@ export class QuotationController extends Controller { if (!record) throw notFoundError("Quotation"); - await permissionCheck(req.user, record.registeredBranch); + await permissionCheckCompany(req.user, record.registeredBranch); const ids = { employee: body.worker?.filter((v) => typeof v === "string"),