Skip to content

Commit 18e6865

Browse files
committed
feat: enable transfers for ngee tropics access
Closes #450
1 parent 79460ab commit 18e6865

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

archive_api/admin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ def _essdive_transfer(self, request, queryset, transfer_type):
9292
f"Requested transfer of {dataset.data_set_id()}.",
9393
messages.SUCCESS)
9494
else:
95-
if dataset.access_level != DataSet.ACCESS_PUBLIC:
95+
if dataset.access_level not in (DataSet.ACCESS_PUBLIC, DataSet.ACCESS_NGEET):
9696
self.message_user(request,
97-
f"Dataset {dataset.data_set_id()} id not public and cannot be transferred to ESS-DIVE",
97+
f"Dataset {dataset.data_set_id()} id not public or ngee-tropics access level and cannot be transferred to ESS-DIVE",
9898
messages.WARNING)
99-
if dataset.publication_date is None:
99+
if dataset.approval_date is None:
100100
self.message_user(request,
101-
f"Dataset {dataset.data_set_id()} has never been published and cannot be transferred to ESS-DIVE",
101+
f"Dataset {dataset.data_set_id()} has never been approved and cannot be transferred to ESS-DIVE",
102102
messages.WARNING)
103103

104104
if transfer_count > 0:

0 commit comments

Comments
 (0)