Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: permission check for saving method

Brad Barbin54d52f64fa97
diff --git a/apps/erp/app/routes/x+/job+/methods+/save.tsx b/apps/erp/app/routes/x+/job+/methods+/save.tsx
index 8624bdb715..840c4f9c0c 100644
--- a/apps/erp/app/routes/x+/job+/methods+/save.tsx
+++ b/apps/erp/app/routes/x+/job+/methods+/save.tsx
@@ -11,7 +11,7 @@ import { path, requestReferrer } from "~/utils/path";
export async function action({ request }: ActionFunctionArgs) {
const { companyId, userId } = await requirePermissions(request, {
- update: "sales",
+ update: "production",
});
const formData = await request.formData();