የመጀመሪያው የሚሠራ ፋይል
reference/delete-policy.sql
ኮዱ እና የሚሠሩ ምሳሌ ገጾች የመጀመሪያ መለያዎቻቸውንና የምሳሌ ጽሑፋቸውን ይይዛሉ። ትምህርቱ እና የፋይል መመሪያዎች በእርስዎ ቋንቋ ያብራሯቸዋል።
-- Apply in the disposable project after the starter upload/read policies.
create policy "delete own avatar" on storage.objects for delete to authenticated
using (bucket_id='avatars' and (storage.foldername(name))[1]=auth.uid()::text);
-- Test a crafted cross-owner request too; client-side checks alone are not protection.