Skip to content

evaluateVisibility

reference
1 min readUpdated

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

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

Parameters

NameType
ruleunknown
attrs`ReaderAttrs

Returns: boolean

Was this page helpful?

Download as PDF