> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-docs-sync-code-change-be6d045.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IPolicyRegistry.isAuthorized

> Generated B20 reference for isAuthorized(uint64,address).

## Signature

```solidity IPolicyRegistry.sol theme={null}
function isAuthorized(uint64 policyId, address account) external view returns (bool);
```

| Field               | Value                          |
| ------------------- | ------------------------------ |
| Selector            | `0x55a1179e`                   |
| Canonical signature | `isAuthorized(uint64,address)` |

## Description

Returns whether `account` 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

| Name       | Type      | Description       |
| ---------- | --------- | ----------------- |
| `policyId` | `uint64`  | Policy to query.  |
| `account`  | `address` | Account to check. |

## Returns

| Type   | Description                                                            |
| ------ | ---------------------------------------------------------------------- |
| `bool` | `true` if `account` is authorized under `policyId`, `false` otherwise. |

## Access Control

Always callable. This function is never gated by the `ActivationRegistry`, regardless of whether the PolicyRegistry feature is active.

## Policy Interaction

Part of the singleton `PolicyRegistry` 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

```solidity Usage Example theme={null}
bool ok = StdPrecompiles.POLICY_REGISTRY.isAuthorized(policyId, account);
```
