Skip to content

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.

AnyColumn

{[key: string]: unknown; app_metadata?: {[key: string]: unknown; roles?: string[]; }; sub?: string; } | null

OwnerOrAdminAccessOptions = {}

Predicate | null