mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 01:40:01 +00:00
183fe0a93c
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
11 lines
249 B
SQL
11 lines
249 B
SQL
CREATE POLICY "Board members can view their association violations"
|
|
ON public.violations
|
|
FOR SELECT
|
|
TO authenticated
|
|
USING (
|
|
association_id IN (
|
|
SELECT bm.association_id
|
|
FROM public.board_members bm
|
|
WHERE bm.user_id = auth.uid()
|
|
)
|
|
); |