fix: make permission covered company

This commit is contained in:
Methapon2001 2024-12-26 10:10:12 +07:00
parent 0c79a92fc4
commit 37fac3934c

View file

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