Skip to content

Commit

Permalink
fix: update policy on auth user email only
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwebsdev committed Nov 8, 2024
1 parent bbc4080 commit eeb8472
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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()))
);

0 comments on commit eeb8472

Please sign in to comment.