Files
supabase/examples
Chandrasekhar Chennuri 5d74fe0dff fix(realtime-prompt): use WITH CHECK for INSERT policy (#51212)
## Description

Fixes #51206

The Realtime prompt example currently uses `USING` for an `INSERT` RLS
policy.

PostgreSQL requires `WITH CHECK` for validating rows being inserted. The
current example therefore cannot be created as written.

This change replaces `USING` with `WITH CHECK` in the
`room_members_can_write` policy.

## Changes

- Changed `USING` to `WITH CHECK` for the `INSERT` RLS policy.
- No other documentation or behavior was changed.

## Verification

- Verified the affected example against PostgreSQL RLS policy syntax.
- Confirmed the change is limited to the affected `INSERT` policy.

Closes #51206
2026-10-30 18:35:46 -07:00
..