Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: update access control guide (#17865)

Kang Ming9764fc445453
diff --git a/apps/docs/pages/guides/storage/access-control.mdx b/apps/docs/pages/guides/storage/access-control.mdx
index a35f02a2afc..a7fcf337af5 100644
--- a/apps/docs/pages/guides/storage/access-control.mdx
+++ b/apps/docs/pages/guides/storage/access-control.mdx
@@ -29,7 +29,7 @@ An easy way to get started would be to create RLS policies for `SELECT`, `INSERT
```sql
create policy "policy_name"
ON storage.objects
-for insert using (
+for insert with check (
true
);
```
@@ -38,7 +38,7 @@ and modify it to only allow authenticated users to upload assets to a specific b
```sql
create policy "policy_name"
-on storage.objects for insert to authenticated using (
+on storage.objects for insert to authenticated with check (
-- restrict bucket
bucket_id = 'my_bucket_id'
);