Private
Public Access
1
0

working but not passing test_analysis

This commit is contained in:
Sander Roosendaal
2020-03-30 21:56:04 +02:00
parent 619bb097e9
commit db4d16e8d9
9 changed files with 143 additions and 8 deletions

View File

@@ -195,6 +195,9 @@ def can_add_session(user):
@rules.predicate
def can_plan(user):
if user.is_anonymous:
return False
return user.rower.rowerplan in ['plan','coach','freecoach']
# checks if rower is coach of user (or is user himself)