diff --git a/apps/web/supabase/migrations/20221215192558_schema.sql b/apps/web/supabase/migrations/20221215192558_schema.sql index b7f50434a..ad0e4ed17 100644 --- a/apps/web/supabase/migrations/20221215192558_schema.sql +++ b/apps/web/supabase/migrations/20221215192558_schema.sql @@ -2733,7 +2733,7 @@ create policy account_image on storage.objects for all using ( with check ( bucket_id = 'account_image' - and kit.get_storage_filename_as_uuid (name) = ( + and (kit.get_storage_filename_as_uuid (name) = ( select auth.uid () ) @@ -2741,5 +2741,5 @@ with auth.uid (), kit.get_storage_filename_as_uuid (name), 'settings.manage' - ) - ); + )) + ); \ No newline at end of file