You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: infra/postgres/dummy-data.sql
+3-1
Original file line number
Diff line number
Diff line change
@@ -51,4 +51,6 @@ CREATE POLICY authenticated_folder ON storage.objects for all USING (bucket_id='
51
51
-- allow CRUD access to a folder in bucket2 to its owners
52
52
CREATE POLICY crud_owner_only ONstorage.objects for all USING (bucket_id='bucket2'and (storage.foldername(name))[1] ='only_owner'and owner =auth.uid());
53
53
-- allow CRUD access to bucket4
54
-
CREATE POLICY open_all_update ONstorage.objects for all WITH CHECK (bucket_id='bucket4');
54
+
CREATE POLICY open_all_update ONstorage.objects for all WITH CHECK (bucket_id='bucket4');
55
+
56
+
CREATE POLICY crud_my_bucket ONstorage.objects for all USING (bucket_id='my-private-bucket'andauth.uid()::text='317eadce-631a-4429-a0bb-f19a7a517b4a');
0 commit comments