Merged in [14849] from ben@nostrum.com:

Give ADs the red Clear Ballot button
 - Legacy-Id: 14904
Note: SVN reference [14849] has been migrated to Git commit 7bf02077fd
This commit is contained in:
Henrik Levkowetz 2018-03-24 13:31:48 +00:00
commit bd205ae29b
2 changed files with 2 additions and 2 deletions

View file

@ -369,7 +369,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)

View file

@ -66,7 +66,7 @@
{% endif %}
{% endif %}
{% if user|has_role:"Secretariat" %}
{% if user|has_role:"Area Director,Secretariat" %}
<a class="btn btn-danger" href="{% url 'ietf.doc.views_ballot.clear_ballot' name=doc.name %}">Clear ballot</a>
{% endif %}
{% endif %}