MED-203: fix doctor feedback form

This commit is contained in:
Danel Kungla
2025-10-07 16:10:55 +03:00
parent 918be18120
commit 2f81002e81
4 changed files with 173 additions and 130 deletions

View File

@@ -0,0 +1,12 @@
grant execute on function medreport.update_analysis_order_status (
bigint,
text,
medreport.analysis_order_status
) to authenticated, service_role;
create policy "doctor_update_analysis_order"
on "medreport"."analysis_orders"
as PERMISSIVE
for UPDATE
to authenticated
using (medreport.is_doctor());