Skip to content

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

update storage policy

Inian Parameshwaranfca7c6ea4e27
diff --git a/www/data/products/storage/permissions-examples.js b/www/data/products/storage/permissions-examples.js
index d641562c138..96a42444d86 100644
--- a/www/data/products/storage/permissions-examples.js
+++ b/www/data/products/storage/permissions-examples.js
@@ -4,7 +4,7 @@ export default [
title: 'Public access to a bucket',
code: `create policy "Public Access"
on storage.objects for all
-with check ( bucket_id = 'avatars' );
+using ( bucket_id = 'avatars' );
`,
detail_title: 'Allow public CRUD access to a bucket',
detail_text: "This will allow any user access to the bucket named 'avatars'",