Kind: Function
Source: atloria-monorepo/apps/api/src/reader-access/visibility.util.ts
THE evaluator: does a reader with attrs see content guarded by rule?
rule is the raw JSON from Document/Category.visibilityRule (untrusted shape).
Signature
tsfunction evaluateVisibility(rule: unknown, attrs: ReaderAttrs | null | undefined): boolean
Parameters
| Name | Type |
|---|---|
rule | unknown |
attrs | `ReaderAttrs |
Returns: boolean
Was this page helpful?