coaches can edit video analysis
This commit is contained in:
@@ -306,7 +306,7 @@ function copyText() {
|
||||
}
|
||||
</script>
|
||||
</li>
|
||||
{% if user.is_authenticated and user == workout.user.user %}
|
||||
{% if user.is_authenticated and workout|may_edit:request %}
|
||||
<li class="grid_4">
|
||||
<input type="checkbox" name="lock" id="lock" value="Lock">Lock Data and Video
|
||||
</li>
|
||||
@@ -322,7 +322,7 @@ function copyText() {
|
||||
<li class="grid_2">
|
||||
|
||||
|
||||
{% if form and user.is_authenticated and user == workout.user.user %}
|
||||
{% if form and user.is_authenticated and workout|may_edit:request %}
|
||||
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
|
||||
@@ -172,6 +172,9 @@ def workout_video_create_view(request,id=0):
|
||||
else:
|
||||
mode = 'erg'
|
||||
|
||||
|
||||
mayedit = checkworkoutuser(request.user,w) and isprorower(request.user.rower)
|
||||
|
||||
# get video ID and offset
|
||||
if request.method == 'POST':
|
||||
form = VideoAnalysisCreateForm(request.POST)
|
||||
|
||||
Reference in New Issue
Block a user