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.

refactor: remove developer check from starter app

Brad Barbind063c877336d
diff --git a/apps/starter/app/routes/x+/_layout.tsx b/apps/starter/app/routes/x+/_layout.tsx
index a04929f3c8..1d0504c6d0 100644
--- a/apps/starter/app/routes/x+/_layout.tsx
+++ b/apps/starter/app/routes/x+/_layout.tsx
@@ -24,7 +24,6 @@ import {
import { AppSidebar } from "~/components/AppSidebar";
import Breadcrumbs from "~/components/Breadcrumbs";
-import { path } from "~/utils/path";
export async function loader({ request }: LoaderFunctionArgs) {
const { accessToken, companyId, expiresAt, expiresIn, userId } =
@@ -43,10 +42,6 @@ export async function loader({ request }: LoaderFunctionArgs) {
await destroyAuthSession(request);
}
- if (!user.data?.developer) {
- throw redirect(path.to.requestAccess);
- }
-
const company = companies.data?.find((c) => c.companyId === companyId);
if (!company) {
throw redirect(getAppUrl());