From 07921b3723c6e77fe5f5cdbcf60dcde7cab11d0f Mon Sep 17 00:00:00 2001 From: Jon Meyers Date: Tue, 30 Apr 2024 17:28:31 +1000 Subject: [PATCH] Fix typo in RLS policy (#23428) fix typo in RLS policy --- .../guides/database/postgres/column-level-security.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/guides/database/postgres/column-level-security.mdx b/apps/docs/content/guides/database/postgres/column-level-security.mdx index 7cdc62d6c2c..6ed691e326c 100644 --- a/apps/docs/content/guides/database/postgres/column-level-security.mdx +++ b/apps/docs/content/guides/database/postgres/column-level-security.mdx @@ -28,7 +28,7 @@ For example, let's assume you have a `posts` table with the following columns: You can restrict updates to just the user who created it using [RLS](/docs/guides/auth#row-level-security), with the following policy: ```sql -create a policy "Allow update for owners" on posts for +create policy "Allow update for owners" on posts for update using ((select auth.uid()) = user_id); ``` @@ -127,7 +127,7 @@ supabase migration new create_posts_table ); -- Add row-level security - create a policy "Allow update for owners" on posts for + create policy "Allow update for owners" on posts for update using ((select auth.uid()) = user_id);