From e20afe45e817d93d9dc4c657bb7802cb224c9fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20A=2E=20S=C3=A1nchez=20L=C3=B3pez?= Date: Sat, 12 Mar 2011 16:35:05 +0000 Subject: [PATCH] Do not allow to cancel already posted submissions. See #614 - Legacy-Id: 2884 --- ietf/submit/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/submit/views.py b/ietf/submit/views.py index fff12d369..f174c8ca8 100644 --- a/ietf/submit/views.py +++ b/ietf/submit/views.py @@ -14,7 +14,7 @@ from ietf.submit.utils import (DraftValidation, perform_post, remove_docs, get_person_for_user, is_secretariat, UPLOADED, WAITING_AUTHENTICATION, CANCELED, INITIAL_VERSION_APPROVAL_REQUESTED, - MANUAL_POST_REQUESTED) + MANUAL_POST_REQUESTED, POSTED) from ietf.utils.mail import send_mail @@ -68,7 +68,7 @@ def _can_force_post(user, detail): def _can_cancel(user, detail): if detail.status_id == UPLOADED: return True - if is_secretariat(user) and detail.status_id != CANCELED: + if is_secretariat(user) and detail.status_id not in [CANCELED, POSTED]: return True return False