Signature
IPolicyRegistry.sol
Description
Returns whetheraccount is authorized under policyId. Never reverts; unknown or malformed IDs collapse to empty-member-set semantics (ALLOWLIST → false, BLOCKLIST → true).
Callers that store policy IDs must validate policyExists(policyId) at write time. A typo’d BLOCKLIST ID silently behaves as ALWAYS_ALLOW because an unknown ID collapses to an empty member set.
Parameters
Returns
Access Control
Always callable. This function is never gated by theActivationRegistry, regardless of whether the PolicyRegistry feature is active.
Policy Interaction
Part of the singletonPolicyRegistry surface used by B20 policy scopes. For composite policies (UNION/INTERSECT), this function reads current child-policy membership on every call, so updating a child’s membership immediately affects what the composite authorizes.
Example
Usage Example