Hide shifts for non-members.
This commit is contained in:
parent
d132b5d2f2
commit
db5a2e1d92
|
@ -37,11 +37,13 @@ Team: {{ team.name }} | {{ block.super }}
|
|||
</a>
|
||||
</li>
|
||||
|
||||
{% if request.user in team.members.all %}
|
||||
<li {% if view.active_menu == "shifts" %}class="active"{% endif %}>
|
||||
<a href="{% url "teams:shifts" camp_slug=team.camp.slug team_slug=team.slug %}">
|
||||
Shifts
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if request.user in team.responsible_members.all %}
|
||||
<li {% if view.active_menu == "info_categories" %}class="active"{% endif %}>
|
||||
|
|
Loading…
Reference in a new issue