Skip to content

Commit

Permalink
fix: only offer export to staff
Browse files Browse the repository at this point in the history
  • Loading branch information
rpcross committed Nov 3, 2024
1 parent 9f781a6 commit 0d24f29
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ietf/templates/group/group_leadership.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
{% block content %}
{% origin %}
<h1>Group Leadership ({{ group_type }})</h1>
<div class="text-end">
<a class="btn btn-primary" href="{% url 'ietf.group.views.group_leadership_csv' group_type=group_type %}">
<i class="bi bi-file-ruled"></i> Export as CSV
</a>
</div>
{% if request.user.is_staff %}
<div class="text-end">
<a class="btn btn-primary" href="{% url 'ietf.group.views.group_leadership_csv' group_type=group_type %}">
<i class="bi bi-file-ruled"></i> Export as CSV
</a>
</div>
{% endif %}
<table class="table table-sm table-striped">
<thead>
<tr>
Expand Down

0 comments on commit 0d24f29

Please sign in to comment.