mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 09:50:01 +00:00
Add ACMCC app source, Supabase backend, and project config
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
-- Make email-images bucket public so embedded images render in email clients
|
||||
UPDATE storage.buckets SET public = true WHERE id = 'email-images';
|
||||
|
||||
-- Public read policy for email-images
|
||||
DROP POLICY IF EXISTS "Public can read email images" ON storage.objects;
|
||||
CREATE POLICY "Public can read email images"
|
||||
ON storage.objects FOR SELECT
|
||||
USING (bucket_id = 'email-images');
|
||||
|
||||
-- Authenticated users can upload email images
|
||||
DROP POLICY IF EXISTS "Authenticated can upload email images" ON storage.objects;
|
||||
CREATE POLICY "Authenticated can upload email images"
|
||||
ON storage.objects FOR INSERT
|
||||
TO authenticated
|
||||
WITH CHECK (bucket_id = 'email-images');
|
||||
Reference in New Issue
Block a user