Skip to content

Commit e20afe4

Browse files
committed
Do not allow to cancel already posted submissions. See ietf-tools#614
- Legacy-Id: 2884
1 parent 496dfa3 commit e20afe4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/submit/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
get_person_for_user, is_secretariat,
1515
UPLOADED, WAITING_AUTHENTICATION, CANCELED,
1616
INITIAL_VERSION_APPROVAL_REQUESTED,
17-
MANUAL_POST_REQUESTED)
17+
MANUAL_POST_REQUESTED, POSTED)
1818
from ietf.utils.mail import send_mail
1919

2020

@@ -68,7 +68,7 @@ def _can_force_post(user, detail):
6868
def _can_cancel(user, detail):
6969
if detail.status_id == UPLOADED:
7070
return True
71-
if is_secretariat(user) and detail.status_id != CANCELED:
71+
if is_secretariat(user) and detail.status_id not in [CANCELED, POSTED]:
7272
return True
7373
return False
7474

0 commit comments

Comments
 (0)