13 lines
279 B
SQL
13 lines
279 B
SQL
alter table public.patient_groups enable row level security;
|
|
|
|
drop policy if exists patient_groups_select on public.patient_groups;
|
|
|
|
create policy patient_groups_select
|
|
on public.patient_groups
|
|
for select
|
|
to authenticated
|
|
using (
|
|
owner_id = auth.uid()
|
|
or owner_id is null
|
|
);
|