working but not passing test_analysis
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user