buildOwnerOrAdminShapePredicate
buildOwnerOrAdminShapePredicate(
ownerColumn,claims,options?):Predicate|null
Defined in: packages/contracts/src/supabase-rls.ts:335
The owner-or-admin predicate — the native-path counterpart to
the owner-or-admin select policy, from the same declaration. An admin gets null (no filter,
every row — the policy’s bypass branch); anyone else gets buildOwnershipShapePredicate.
Parameters
Section titled “Parameters”ownerColumn
Section titled “ownerColumn”AnyColumn
claims
Section titled “claims”{[key: string]: unknown; app_metadata?: {[key: string]: unknown; roles?: string[]; }; sub?: string; } | null
options?
Section titled “options?”OwnerOrAdminAccessOptions = {}
Returns
Section titled “Returns”Predicate | null