Skip to content

Commit

Permalink
ARSN-362: update to handle older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Toozs committed Aug 24, 2023
1 parent 4052768 commit 12205d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/policyEvaluator/evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ export function evaluatePolicy(
}

/**
* @deprecated Upgrade to evaluateAllPoliciesV2
* Evaluate whether a request is permitted under a policy.
* @param requestContext - Info necessary to
* evaluate permission
Expand All @@ -324,6 +325,13 @@ export function evaluateAllPolicies(
requestContext: RequestContext,
allPolicies: any[],
log: Logger,
): string {
return evaluateAllPoliciesV2(requestContext, allPolicies, log).verdict;
}
export function evaluateAllPoliciesV2(
requestContext: RequestContext,
allPolicies: any[],
log: Logger,
): {
verdict: string;
isImplicit: boolean;
Expand Down

0 comments on commit 12205d6

Please sign in to comment.