Private
Public Access
1
0

team manager can edit workout

This commit is contained in:
Sander Roosendaal
2017-02-15 13:07:55 +01:00
parent 478b6f2fa0
commit f327f1aa8e
2 changed files with 3 additions and 2 deletions

View File

@@ -62,7 +62,7 @@
<td> {{ workout.date |truncatechars:15}} </td>
<td> {{ workout.starttime }} </td>
<td>
{% if workout.user.user == user %}
{% if workout.user.user == user or user == team.manager %}
{% if workout.name != '' %}
<a href="/rowers/workout/{{ workout.id }}/edit">{{ workout.name }}</a> </td>
{% else %}