The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Include "to authenticated" in example rls policies (#29761)
Enzo2ca63953d62c
diff --git a/apps/docs/content/guides/database/postgres/custom-claims-and-role-based-access-control-rbac.mdx b/apps/docs/content/guides/database/postgres/custom-claims-and-role-based-access-control-rbac.mdxindex 74a208de77e..a63886037f3 100644--- a/apps/docs/content/guides/database/postgres/custom-claims-and-role-based-access-control-rbac.mdx+++ b/apps/docs/content/guides/database/postgres/custom-claims-and-role-based-access-control-rbac.mdx@@ -246,8 +246,8 @@ You can read more about using functions in RLS policies in the [RLS guide](/docsYou can then use the `authorize` method within your RLS policies. For example, to enable the desired delete access, you would add the following policies:```sql-create policy "Allow authorized delete access" on public.channels for delete using ( (SELECT authorize('channels.delete')) );-create policy "Allow authorized delete access" on public.messages for delete using ( (SELECT authorize('messages.delete')) );+create policy "Allow authorized delete access" on public.channels for delete to authenticated using ( (SELECT authorize('channels.delete')) );+create policy "Allow authorized delete access" on public.messages for delete to authenticated using ( (SELECT authorize('messages.delete')) );```## Accessing custom claims in your application