dont show servers idps in create user when idp mode is org on enterprise

This commit is contained in:
miloschwartz
2026-08-12 15:20:41 -04:00
parent 295e38d2af
commit dd78c2cc08
3 changed files with 18 additions and 4 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
import { db, idp, idpOrg, Transaction } from "@server/db";
import { and, eq } from "drizzle-orm";
import { build } from "@server/build";
export function isOrgIdentityProviderMode(): boolean {
return process.env.IDENTITY_PROVIDER_MODE === "org";
return build === "saas" || process.env.IDENTITY_PROVIDER_MODE === "org";
}
/**