@@ -42,8 +41,7 @@
-
-
diff --git a/supabase/migrations/20231210135930_challenges.sql b/supabase/migrations/20231210135930_challenges.sql
index ab57fb1..1a4a7ec 100644
--- a/supabase/migrations/20231210135930_challenges.sql
+++ b/supabase/migrations/20231210135930_challenges.sql
@@ -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())
\ No newline at end of file