add subscribed check back

This commit is contained in:
miloschwartz
2026-05-05 11:52:31 -07:00
parent 3b232bcc58
commit 18f6e0f75d

View File

@@ -333,23 +333,16 @@ export async function validateOidcCallback(
.innerJoin(orgs, eq(orgs.orgId, idpOrg.orgId)); .innerJoin(orgs, eq(orgs.orgId, idpOrg.orgId));
allOrgs = idpOrgs.map((o) => o.orgs); allOrgs = idpOrgs.map((o) => o.orgs);
// for (const org of allOrgs) { for (const org of allOrgs) {
// const subscribed = await isSubscribed( const subscribed = await isSubscribed(
// org.orgId, org.orgId,
// tierMatrix.autoProvisioning tierMatrix.autoProvisioning
// ); );
// if (!subscribed) { if (!subscribed) {
// // filter out the org // filter out the org
// allOrgs = allOrgs.filter((o) => o.orgId !== org.orgId); allOrgs = allOrgs.filter((o) => o.orgId !== org.orgId);
}
// // return next( }
// // createHttpError(
// // HttpCode.FORBIDDEN,
// // "This organization's current plan does not support this feature."
// // )
// // );
// }
// }
} else { } else {
allOrgs = await db.select().from(orgs); allOrgs = await db.select().from(orgs);
} }