Hide shifts for non-members.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-05 18:31:43 +02:00
parent d132b5d2f2
commit db5a2e1d92

View file

@ -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 %}>