From 0be33256a9e6dbc091f5904764259b241b402ba0 Mon Sep 17 00:00:00 2001 From: Vignesh Hari Date: Mon, 6 Jan 2025 16:27:48 +0530 Subject: [PATCH] Fix issue with allergy --- care/emr/api/viewsets/allergy_intolerance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/care/emr/api/viewsets/allergy_intolerance.py b/care/emr/api/viewsets/allergy_intolerance.py index 551f4fdf1f..d174fb5f4b 100644 --- a/care/emr/api/viewsets/allergy_intolerance.py +++ b/care/emr/api/viewsets/allergy_intolerance.py @@ -60,7 +60,7 @@ def get_patient_obj(self): ) def authorize_update(self, request_obj, model_instance): - self.authorize_create({}, model_instance) + self.authorize_create({}) def authorize_create(self, instance): if not AuthorizationController.call(