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,11 @@
|
||||
-- Allow authenticated users (homeowners, board members) to read status updates for their associations
|
||||
CREATE POLICY "Authenticated users can read status updates for their associations"
|
||||
ON public.status_updates
|
||||
FOR SELECT
|
||||
TO authenticated
|
||||
USING (
|
||||
association_id IN (SELECT public.get_user_association_ids())
|
||||
OR public.has_role(auth.uid(), 'admin'::public.app_role)
|
||||
OR public.has_role(auth.uid(), 'manager'::public.app_role)
|
||||
OR public.has_role(auth.uid(), 'employee'::public.app_role)
|
||||
);
|
||||
Reference in New Issue
Block a user