mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 09:50:01 +00:00
Add ACMCC app source, Supabase backend, and project config
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
CREATE POLICY "Users can delete own messages"
|
||||
ON public.direct_messages
|
||||
FOR DELETE
|
||||
TO authenticated
|
||||
USING (
|
||||
auth.uid() = sender_id
|
||||
OR auth.uid() = recipient_id
|
||||
OR public.has_role(auth.uid(), 'admin'::public.app_role)
|
||||
OR public.has_role(auth.uid(), 'manager'::public.app_role)
|
||||
);
|
||||
Reference in New Issue
Block a user