mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 09:50:01 +00:00
183fe0a93c
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
10 lines
319 B
SQL
10 lines
319 B
SQL
|
|
DROP POLICY IF EXISTS "Users can view own association billable expenses" ON public.billable_expenses;
|
|
|
|
CREATE POLICY "Staff can view billable expenses"
|
|
ON public.billable_expenses FOR SELECT TO authenticated
|
|
USING (
|
|
has_role(auth.uid(), 'admin'::app_role)
|
|
OR has_role(auth.uid(), 'manager'::app_role)
|
|
);
|