From b08217dc8347acb9f997dea251e211f260ec687c Mon Sep 17 00:00:00 2001 From: Mahfouz Date: Mon, 6 Nov 2023 09:02:50 +0000 Subject: [PATCH] put a fix to prevent consent rt queues from being created --- emgena/serializers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emgena/serializers.py b/emgena/serializers.py index 43d87eafc..6fa036d09 100644 --- a/emgena/serializers.py +++ b/emgena/serializers.py @@ -92,7 +92,6 @@ def create(self, validated_data): n = ena_models.Notify(**validated_data) emg_queue = settings.RT["emg_queue"] - ena_queue = settings.RT["ena_queue"] ticket = { "Requestor": n.from_email, @@ -104,7 +103,7 @@ def create(self, validated_data): ticket["Cc"] = n.cc if n.is_consent: - ticket["Queue"] = ena_queue + return 403 else: ticket["Queue"] = emg_queue