Fix typo in RLS policy (#23428)

fix typo in RLS policy
This commit is contained in:
Jon Meyers authored and GitHub committed 2024-04-30 09:28:31 +02:00
1 parent 92208d140a
commit 07921b3723
1 file changed
+2 -2
@@ -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);