From b7132392d4ed483789bc248691cc99bdf6f10fba Mon Sep 17 00:00:00 2001 From: Frank Duncan Date: Sat, 15 Apr 2023 09:02:09 -0500 Subject: [PATCH] Change permissions to withdraw to just being an applicant Based on Review in #3298, the decision was made that an applicant can withdraw at any time, without edit permissions, and edit permissions should not be to applicants for their own submissions. Issue #3296 --- .../funds/applicationsubmission_detail.html | 14 ++++++-------- hypha/apply/funds/views.py | 2 +- hypha/apply/funds/workflow.py | 2 +- hypha/static_src/sass/custom/_custom.scss | 1 - 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/hypha/apply/funds/templates/funds/applicationsubmission_detail.html b/hypha/apply/funds/templates/funds/applicationsubmission_detail.html index 8950acfc05..7229b20b35 100644 --- a/hypha/apply/funds/templates/funds/applicationsubmission_detail.html +++ b/hypha/apply/funds/templates/funds/applicationsubmission_detail.html @@ -111,14 +111,12 @@
{% blocktrans with stage=object.previous.stage %}Your {{ stage }} applicatio {% trans "Delete" %} {% endif %} - {% if request.user|has_edit_perm:object %} - {% if request.user.is_applicant %} - - {% trans "Withdraw" %} - - {% endif %} + {% if ENABLE_SUBMISSION_WITHDRAWAL and request.user.is_applicant %} + + {% trans "Withdraw" %} + {% endif %} {% if request.user|has_edit_perm:object %}