Private
Public Access
1
0

passing a few more tests, fixed some permissions bugs

This commit is contained in:
Sander Roosendaal
2020-01-22 22:29:45 +01:00
parent fa39b05319
commit 07acd1f192
9 changed files with 58 additions and 31 deletions

View File

@@ -45,7 +45,7 @@ from rowers.rower_rules import (
can_view_plan,can_change_plan,can_delete_plan,
can_view_cycle,can_change_cycle,can_delete_cycle,
can_add_workout_member,can_plan_user,is_paid_coach,
can_start_trial, can_start_plantrial,can_plan
can_start_trial, can_start_plantrial,can_plan,is_workout_team
)
from django.shortcuts import render
@@ -389,6 +389,7 @@ def getrequestrower(request,rowerid=0,userid=0,notpermanent=False):
r = getrower(request.user)
u = r.user
except Rower.DoesNotExist:
raise Http404("Rower doesn't exist")