Skip to main content

is_escaped

Function is_escaped 

Source
pub fn is_escaped(controls: &Controls, policy: PolicyId) -> bool
Expand description

What: Whether a policy is skipped for this invocation. Why: The engine asks by typed identity instead of scanning the list itself.

In TS you’d write (pseudocode):

const escaped = controls.escaped.includes(policy);