Kaizen
Browse modulesTenancyFunctions

Function: runWithPublicRead()

function runWithPublicRead<T>(fn: () => T): T;

Defined in: server/tenancy/context.ts:65

Run fn in PUBLIC-READ mode — the deliberate cross-tenant exception. Reads are unscoped at the app layer and RLS admits rows via the SELECT-only bypass. Use only for narrow, PII-free public reads.

Type Parameters

Type Parameter
T

Parameters

ParameterType
fn() => T

Returns

T

On this page