From c92b62a8036fd5a46665d74c25d3d42b0a2f9e9d Mon Sep 17 00:00:00 2001 From: patrickwebsdev Date: Thu, 7 Nov 2024 22:03:26 -0300 Subject: [PATCH] fix: supabase update --- ...8005004_add_help_requests_policy_update_with_email.sql | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/supabase/migrations/20241108005004_add_help_requests_policy_update_with_email.sql b/supabase/migrations/20241108005004_add_help_requests_policy_update_with_email.sql index 28d38570..993bd1f1 100644 --- a/supabase/migrations/20241108005004_add_help_requests_policy_update_with_email.sql +++ b/supabase/migrations/20241108005004_add_help_requests_policy_update_with_email.sql @@ -1,8 +1,6 @@ -alter policy "Enable update for users based on email" -on "public"."help_requests" +alter policy "Enable_update_for_users_based_on_email" +on public.help_requests to public using ( ((auth.uid() IS NOT NULL) AND ((additional_info ->> 'email'::text) = auth.email())) -with check ( - ((auth.uid() IS NOT NULL) AND ((additional_info ->> 'email'::text) = auth.email())) -); \ No newline at end of file +) \ No newline at end of file