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,19 @@
|
||||
CREATE POLICY "Board members can insert invoices for their associations"
|
||||
ON public.invoices FOR INSERT TO authenticated
|
||||
WITH CHECK (
|
||||
EXISTS (
|
||||
SELECT 1 FROM public.board_members bm
|
||||
WHERE bm.user_id = auth.uid()
|
||||
AND bm.association_id = invoices.association_id
|
||||
)
|
||||
);
|
||||
|
||||
CREATE POLICY "Board members can insert bills for their associations"
|
||||
ON public.bills FOR INSERT TO authenticated
|
||||
WITH CHECK (
|
||||
EXISTS (
|
||||
SELECT 1 FROM public.board_members bm
|
||||
WHERE bm.user_id = auth.uid()
|
||||
AND bm.association_id = bills.association_id
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user