Skip to content

Commit

Permalink
Merge pull request #15 from Ayon95/cabin_update_migration_files
Browse files Browse the repository at this point in the history
Add migration files for cabin update functionality
  • Loading branch information
Ayon95 authored Jan 3, 2024
2 parents db2f861 + 27d02e8 commit c54b5f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
create policy "Enable update access for matching authenticated users"
on "public"."cabin"
as permissive
for update
to authenticated
using ((auth.uid() = user_id));
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
create policy "Enable read access for authenticated users only"
on "storage"."objects"
as permissive
for select
to authenticated
using (true);


create policy "Enable update access for authenticated users only"
on "storage"."objects"
as permissive
for update
to authenticated
using (true)
with check (true);

0 comments on commit c54b5f3

Please sign in to comment.