diff --git a/supabase/migrations/20260418181734_ef909729-6e62-435e-b629-599779d7b946.sql b/supabase/migrations/20260418181734_ef909729-6e62-435e-b629-599779d7b946.sql new file mode 100644 index 0000000..c04c0a7 --- /dev/null +++ b/supabase/migrations/20260418181734_ef909729-6e62-435e-b629-599779d7b946.sql @@ -0,0 +1,9 @@ +-- Allow public (anon) to read minimal payment_request fields by id for the pay page +CREATE POLICY "pr_select_public_by_id" +ON public.payment_requests +FOR SELECT +TO anon, authenticated +USING (true); + +-- Drop the old auth-only select policy that's now redundant +DROP POLICY IF EXISTS pr_select_auth ON public.payment_requests; \ No newline at end of file