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>
10 lines
349 B
SQL
10 lines
349 B
SQL
DROP POLICY IF EXISTS "Legal users can view legal matters" ON public.legal_matters;
|
|
|
|
CREATE POLICY "Legal users can view assigned community legal matters"
|
|
ON public.legal_matters
|
|
FOR SELECT
|
|
TO authenticated
|
|
USING (
|
|
public.has_role(auth.uid(), 'legal'::public.app_role)
|
|
AND public.legal_user_assigned_to_association(auth.uid(), association_id)
|
|
); |