Skip to content

Commit 28081b2

Browse files
committed
Add policy to allow public access to event RSVPs
1 parent 8f034fe commit 28081b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Drop prior authenticated-read policy so only anon policy remains
2+
DROP POLICY IF EXISTS "Users can SELECT events_rsvps" ON public.events_rsvps;
3+
4+
-- Allow anonymous users to read event RSVPs (public view access)
5+
CREATE POLICY "Everyone can SELECT events_rsvps" ON public.events_rsvps
6+
FOR SELECT TO anon, authenticated
7+
USING (TRUE);
8+

0 commit comments

Comments
 (0)