
-- Allow anonymous users to read documents (needed for shared access page)
CREATE POLICY "Anon can read documents via shared links"
ON public.documents
FOR SELECT
TO anon
USING (true);
