Skip to content

Commit 4e7d077

Browse files
committed
Adjust when materials links on the materials page show for the secretariat. Commit ready for merge.
- Legacy-Id: 12384
1 parent be51bc2 commit 4e7d077

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

ietf/templates/meeting/group_materials.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</td>
1919

2020
{% if session.status_id == 'canceled' %}
21-
{% if user and user.is_authenticated and user|managed_groups %}
21+
{% if user|has_role:"Secretariat" or user|managed_groups %}
2222
<td colspan="4"><span class="label label-danger">Session cancelled</span></td>
2323
{% else %}
2424
<td colspan="3"><span class="label label-danger">Session cancelled</span></td>
@@ -61,7 +61,7 @@
6161
{% endfor %}
6262
{% endwith %}
6363
</td>
64-
{% if user and user.is_authenticated and user|managed_groups %}
64+
{% if user|has_role:"Secretariat" or user|managed_groups %}
6565
<td>
6666
<div>{% include "meeting/edit_materials_button.html" %}</div>
6767
</td>

ietf/templates/meeting/materials.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h2 class="anchor-target" id="plenaries">Plenaries</h2>
4040
<table class="table table-condensed table-striped tablesorter">
4141
<thead>
4242
<tr>
43-
{% if user and user.is_authenticated and user|managed_groups %}
43+
{% if user|has_role:"Secretariat" or user|managed_groups %}
4444
<th class="col-md-1">Group</th>
4545
<th class="col-md-1">Agenda</th>
4646
<th class="col-md-1">Minutes</th>
@@ -72,7 +72,7 @@ <h2 class="anchor-target" id="{{sessions.list.0.group.parent.acronym}}">{{sessio
7272
<table class="table table-condensed table-striped tablesorter">
7373
<thead>
7474
<tr>
75-
{% if user and user.is_authenticated and user|managed_groups %}
75+
{% if user|has_role:"Secretariat" or user|managed_groups %}
7676
<th class="col-md-1">Group</th>
7777
<th class="col-md-1">Agenda</th>
7878
<th class="col-md-1">Minutes</th>
@@ -106,7 +106,7 @@ <h2 class="anchor-target" id="training">Training</h2>
106106
<table class="table table-condensed table-striped tablesorter">
107107
<thead>
108108
<tr>
109-
{% if user and user.is_authenticated and user|managed_groups %}
109+
{% if user|has_role:"Secretariat" or user|managed_groups %}
110110
<th class="col-md-1">Group</th>
111111
<th class="col-md-1">Agenda</th>
112112
<th class="col-md-1">Minutes</th>
@@ -140,7 +140,7 @@ <h2 class="anchor-target" id="iab">IAB <small>Internet Architecture Board</small
140140
<table class="table table-condensed table-striped tablesorter">
141141
<thead>
142142
<tr>
143-
{% if user and user.is_authenticated and user|managed_groups %}
143+
{% if user|has_role:"Secretariat" or user|managed_groups %}
144144
<th class="col-md-1">Group</th>
145145
<th class="col-md-1">Agenda</th>
146146
<th class="col-md-1">Minutes</th>
@@ -173,7 +173,7 @@ <h2 class="anchor-target" id="irtf">IRTF <small>Internet Research Task Force</sm
173173
<table class="table table-condensed table-striped tablesorter">
174174
<thead>
175175
<tr>
176-
{% if user and user.is_authenticated and user|managed_groups %}
176+
{% if user|has_role:"Secretariat" or user|managed_groups %}
177177
<th class="col-md-1">Group</th>
178178
<th class="col-md-1">Agenda</th>
179179
<th class="col-md-1">Minutes</th>

0 commit comments

Comments
 (0)