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,20 @@
|
||||
-- Allow board members to READ bill approvals for their associations
|
||||
CREATE POLICY "Board members can view bill_approvals"
|
||||
ON public.bill_approvals
|
||||
FOR SELECT
|
||||
TO authenticated
|
||||
USING (
|
||||
association_id IN (SELECT public.get_user_association_ids())
|
||||
);
|
||||
|
||||
-- Allow board members to UPDATE their own approval status (approve/deny)
|
||||
CREATE POLICY "Board members can update bill_approvals"
|
||||
ON public.bill_approvals
|
||||
FOR UPDATE
|
||||
TO authenticated
|
||||
USING (
|
||||
association_id IN (SELECT public.get_user_association_ids())
|
||||
)
|
||||
WITH CHECK (
|
||||
association_id IN (SELECT public.get_user_association_ids())
|
||||
);
|
||||
Reference in New Issue
Block a user