Files
acmcc/supabase/migrations/20260319020456_ffd99fe2-ec2b-4747-aeda-bd645983a2d7.sql
2026-06-01 20:19:26 -04:00

25 lines
637 B
SQL

-- RLS policies for the 'files' storage bucket
CREATE POLICY "Authenticated users can upload to files bucket"
ON storage.objects
FOR INSERT
TO authenticated
WITH CHECK (bucket_id = 'files');
CREATE POLICY "Authenticated users can read files bucket"
ON storage.objects
FOR SELECT
TO authenticated
USING (bucket_id = 'files');
CREATE POLICY "Authenticated users can update files bucket"
ON storage.objects
FOR UPDATE
TO authenticated
USING (bucket_id = 'files')
WITH CHECK (bucket_id = 'files');
CREATE POLICY "Authenticated users can delete from files bucket"
ON storage.objects
FOR DELETE
TO authenticated
USING (bucket_id = 'files');