Skip to content

Commit 01967a3

Browse files
committed
fix: policy sql insert with check
1 parent d45b91c commit 01967a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/next-storage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ alter publication supabase_realtime add table profiles;
3333
-- Set up Storage!
3434
insert into storage.buckets (id, name) values ('avatars', 'avatars');
3535
create policy "Avatar images are publicly accessible." on storage.objects for select using ( bucket_id = 'avatars' );
36-
create policy "Anyone can upload an avatar." on storage.objects for insert using ( bucket_id = 'avatars' );
36+
create policy "Anyone can upload an avatar." on storage.objects for insert with check ( bucket_id = 'avatars' );
3737
```

0 commit comments

Comments
 (0)