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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix: don't show shop floor app to customer or supplier accounts
Brad Barbind4d50ebe9b4a
diff --git a/apps/erp/app/hooks/useModules.tsx b/apps/erp/app/hooks/useModules.tsxindex 413f399809..041833e627 100644--- a/apps/erp/app/hooks/useModules.tsx+++ b/apps/erp/app/hooks/useModules.tsx@@ -25,6 +25,7 @@ export function useModules() {name: "Shop Floor",to: path.to.external.mes,icon: LuTvMinimalPlay,+ role: "employee",},{permission: "sales",@@ -109,6 +110,8 @@ export function useModules() {return modules.filter((item) => {if (item.permission) {return permissions.can("view", item.permission);+ } else if (item.role) {+ return permissions.is(item.role);} else {return true;}