Skip to content

Commit

Permalink
put a fix to prevent consent rt queues from being created
Browse files Browse the repository at this point in the history
  • Loading branch information
MGS-sails committed Nov 6, 2023
1 parent c4a2e36 commit b08217d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions emgena/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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

Expand Down

0 comments on commit b08217d

Please sign in to comment.