Mega push vol 5, working on messaging now

This commit is contained in:
AlacrisDevs
2026-02-07 01:31:55 +02:00
parent d8bbfd9dc3
commit e55881b38b
77 changed files with 8478 additions and 1554 deletions

View File

@@ -0,0 +1,17 @@
-- Allow authenticated users to upload to user-avatars folder
CREATE POLICY "Authenticated users can upload user avatars"
ON storage.objects FOR INSERT
TO authenticated
WITH CHECK (bucket_id = 'avatars' AND (storage.foldername(name))[1] = 'user-avatars');
-- Allow authenticated users to update (upsert) their user avatars
CREATE POLICY "Authenticated users can update user avatars"
ON storage.objects FOR UPDATE
TO authenticated
USING (bucket_id = 'avatars' AND (storage.foldername(name))[1] = 'user-avatars');
-- Allow authenticated users to delete user avatars
CREATE POLICY "Authenticated users can delete user avatars"
ON storage.objects FOR DELETE
TO authenticated
USING (bucket_id = 'avatars' AND (storage.foldername(name))[1] = 'user-avatars');