mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-08 19:10:32 +00:00
Fix lint
This commit is contained in:
@@ -23,7 +23,7 @@ export type CheckOrgAccessPolicyResult = {
|
||||
compliant: boolean;
|
||||
maxPasswordAgeDays: number;
|
||||
passwordAgeDays: number;
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -36,9 +36,6 @@ export async function enforceResourceSessionLength(
|
||||
|
||||
export async function checkOrgAccessPolicy(
|
||||
props: CheckOrgAccessPolicyProps
|
||||
): Promise<{
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}> {
|
||||
return { success: true };
|
||||
): Promise<CheckOrgAccessPolicyResult> {
|
||||
return { allowed: true };
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ export async function loadLoginPage(
|
||||
);
|
||||
}
|
||||
|
||||
let { resourceId, idpId, fullDomain, orgId } = parsedQuery.data;
|
||||
const { resourceId, idpId, fullDomain, orgId } = parsedQuery.data;
|
||||
|
||||
if (resourceId) {
|
||||
const [resource] = await db
|
||||
|
||||
@@ -76,7 +76,7 @@ export async function getExchangeToken(
|
||||
|
||||
// check org policy here
|
||||
const hasAccess = await checkOrgAccessPolicy({
|
||||
orgId: resource[0].orgId,
|
||||
orgId: resource.orgId,
|
||||
userId: req.user!.userId,
|
||||
session: req.session
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user