From cc967099575aac036671b89cf315b2b418d44e2f Mon Sep 17 00:00:00 2001 From: Ben Campbell Date: Sat, 17 Mar 2018 16:35:35 +0000 Subject: [PATCH 1/2] Give ADs the red Clear Ballot button - Legacy-Id: 14848 --- ietf/doc/views_ballot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/doc/views_ballot.py b/ietf/doc/views_ballot.py index 87e4872f8..d065c749e 100644 --- a/ietf/doc/views_ballot.py +++ b/ietf/doc/views_ballot.py @@ -371,7 +371,7 @@ def send_ballot_comment(request, name, ballot_id): cc_select_form = cc_select_form, )) -@role_required('Secretariat') +@role_required('Area Director','Secretariat') def clear_ballot(request, name): """Clear all positions and discusses on every open ballot for a document.""" doc = get_object_or_404(Document, name=name) From 7bf02077fdf19c6501a8eb8f3762db6769a421a0 Mon Sep 17 00:00:00 2001 From: Ben Campbell Date: Sat, 17 Mar 2018 16:39:24 +0000 Subject: [PATCH 2/2] Give ADs the red Clear Ballot button - Legacy-Id: 14849 --- ietf/templates/doc/document_ballot_content.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/templates/doc/document_ballot_content.html b/ietf/templates/doc/document_ballot_content.html index 76abc4262..a021f3177 100644 --- a/ietf/templates/doc/document_ballot_content.html +++ b/ietf/templates/doc/document_ballot_content.html @@ -66,7 +66,7 @@ {% endif %} {% endif %} - {% if user|has_role:"Secretariat" %} + {% if user|has_role:"Area Director,Secretariat" %} Clear ballot {% endif %} {% endif %}