mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-06 12:41:25 +02:00
remove check on oidc login
This commit is contained in:
@@ -332,17 +332,6 @@ export async function validateOidcCallback(
|
|||||||
.where(eq(idpOrg.idpId, existingIdp.idp.idpId))
|
.where(eq(idpOrg.idpId, existingIdp.idp.idpId))
|
||||||
.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) {
|
|
||||||
const subscribed = await isSubscribed(
|
|
||||||
org.orgId,
|
|
||||||
tierMatrix.autoProvisioning
|
|
||||||
);
|
|
||||||
if (!subscribed) {
|
|
||||||
// filter out the org
|
|
||||||
allOrgs = allOrgs.filter((o) => o.orgId !== org.orgId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
allOrgs = await db.select().from(orgs);
|
allOrgs = await db.select().from(orgs);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user