mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 10:19:43 +00:00
Initial commit
This commit is contained in:
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())
|
||||
);
|
||||
Reference in new issue
Block a user