Initial commit

This commit is contained in:
jjbrunton committed 2025-12-27 19:10:11 +00:00
commit 4d53d83769
73 files changed
+37728

No files matched your search

@@ -0,0 +1,9 @@
-- Allow users to view their partner's responses in addition to their own
DROP POLICY IF EXISTS "Users can view own responses" ON public.responses;
CREATE POLICY "Users can view couple responses"
ON public.responses FOR SELECT
USING (
user_id = auth.uid() OR
couple_id IN (SELECT couple_id FROM public.profiles WHERE id = auth.uid())
);