From 1a7d96a8c2d1880328bf7da0471a9b8526a74b92 Mon Sep 17 00:00:00 2001 From: Jonas Jaszkowic Date: Wed, 18 Dec 2024 09:51:02 +0100 Subject: [PATCH] feat: loosen trees_adopted rls --- supabase/migrations/20241218084542_loosen_adoptions_rls.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 supabase/migrations/20241218084542_loosen_adoptions_rls.sql diff --git a/supabase/migrations/20241218084542_loosen_adoptions_rls.sql b/supabase/migrations/20241218084542_loosen_adoptions_rls.sql new file mode 100644 index 00000000..f48ec309 --- /dev/null +++ b/supabase/migrations/20241218084542_loosen_adoptions_rls.sql @@ -0,0 +1,6 @@ +drop policy "Authenticated users can select their own adoptions" on "public"."trees_adopted"; + +create policy "Everyon can select all adoptions" +on trees_adopted for select +to anon +using ( true ); \ No newline at end of file