Challenges Modification

This commit is contained in:
2023-12-12 20:20:36 +08:00
parent 3f5654efb4
commit ffa7f097af
3 changed files with 103 additions and 31 deletions

View File

@ -32,5 +32,5 @@ policy "Enable update access for users' own items" on "public"."challenges"
as permissive for
update
to public
using (author = auth.uid())
using (author = auth.uid() and status = 'in-progress')
with check (author = auth.uid())