From 37fac3934c06b032ba28de1ce0cea856241b80ec Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 26 Dec 2024 10:10:12 +0700 Subject: [PATCH] fix: make permission covered company --- src/controllers/05-quotation-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"),