From da417316bc9af04eb8eaaecd02cfbfeb3b05a197 Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Tue, 28 Nov 2023 13:41:09 +0100
Subject: [PATCH] TMSS-2836: let the commissioners decide if data is to be
 ingested

---
 SAS/TMSS/backend/src/tmss/tmssapp/tasks.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/tasks.py b/SAS/TMSS/backend/src/tmss/tmssapp/tasks.py
index 6ebe3e78b04..ee07bd2041e 100644
--- a/SAS/TMSS/backend/src/tmss/tmssapp/tasks.py
+++ b/SAS/TMSS/backend/src/tmss/tmssapp/tasks.py
@@ -577,6 +577,9 @@ def create_lofar2_sibling_scheduling_unit_draft_and_blueprint(scheduling_unit_bl
         scheduling_unit_draft = create_scheduling_unit_draft_from_scheduling_unit_blueprint(scheduling_unit_blueprint)
         scheduling_unit_draft.name = scheduling_unit_draft.name.replace("(Copy from blueprint)", "(Lofar2 sibling)")
 
+        # let the commissioners decide if data is to be ingested
+        scheduling_unit_draft.ingest_permission_required = True
+
         # move the draft to the COM_LOFAR2 project, siblings scheduling_set
         project = models.Project.objects.get(name="COM_LOFAR2")
         try:
-- 
GitLab