mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 01:40:01 +00:00
183fe0a93c
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
390 B
SQL
12 lines
390 B
SQL
-- The documents feature stores public file URLs for the 'files' bucket,
|
|
-- so the bucket itself must be public for downloads/previews to work.
|
|
UPDATE storage.buckets
|
|
SET public = true
|
|
WHERE id = 'files';
|
|
|
|
DROP POLICY IF EXISTS "Public can read files bucket" ON storage.objects;
|
|
CREATE POLICY "Public can read files bucket"
|
|
ON storage.objects
|
|
FOR SELECT
|
|
TO anon
|
|
USING (bucket_id = 'files'); |