create policy "users upload own screenshots" on storage.objects for insert to authenticated with check (bucket_id='screenshots' and (storage.foldername(name))[1] = auth.uid()::text);
create policy "read own or admin screenshots" on storage.objects for select to authenticated using (bucket_id='screenshots' and ((storage.foldername(name))[1] = auth.uid()::text or public.has_role(auth.uid(),'admin')));