Skip to content

Commit

Permalink
fix: migration
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwebsdev committed Nov 8, 2024
1 parent c92b62a commit ee39654
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
create policy "Enable_update_for_users_based_on_email"
on public.help_requests
for update
to public
using (
((auth.uid() IS NOT NULL) AND ((additional_info ->> 'email'::text) = auth.email()))
);

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()))
)
((auth.uid() IS NOT NULL) AND ((additional_info ->> 'email'::text) = auth.email()))
);

0 comments on commit ee39654

Please sign in to comment.