Make the cancel button available to the secretariat also when not coming in through the submission-hash URL.
- Legacy-Id: 3196
This commit is contained in:
parent
95898de070
commit
f598e4b265
|
@ -151,6 +151,8 @@ def draft_status(request, submission_id, submission_hash=None, message=None):
|
|||
show_notify_button = False
|
||||
if allow_edit == False or can_cancel == False:
|
||||
show_notify_button = True
|
||||
if submission_hash is None and is_secretariat(request.user):
|
||||
submission_hash = detail.get_hash() # we'll need this when rendering the cancel button in the form
|
||||
return render_to_response('submit/draft_status.html',
|
||||
{'selected': 'status',
|
||||
'detail': detail,
|
||||
|
|
Loading…
Reference in a new issue