# evaluateVisibility

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/reader-access/visibility.util.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/reader-access/visibility.util.ts#L105)

THE evaluator: does a reader with `attrs` see content guarded by `rule`?
`rule` is the raw JSON from Document/Category.visibilityRule (untrusted shape).

## Signature

```ts
function evaluateVisibility(rule: unknown, attrs: ReaderAttrs | null | undefined): boolean
```

## Parameters

| Name | Type |
|---|---|
| `rule` | `unknown` |
| `attrs` | `ReaderAttrs | null | undefined` |

**Returns:** `boolean`
