Private
Public Access
1
0

added freecoach to coach priviliges

This commit is contained in:
Sander Roosendaal
2019-05-15 15:40:51 +02:00
parent d9a5ac2c06
commit 0f8a9f285b
12 changed files with 50 additions and 18 deletions

View File

@@ -1041,7 +1041,7 @@ def hasplannedsessions(user):
r = Rower(user=user)
r.save()
result = user.is_authenticated and (r.rowerplan=='coach' or r.rowerplan=='plan')
result = user.is_authenticated and (r.rowerplan=='coach' or r.rowerplan=='freecoach' or r.rowerplan=='plan')
if not result and r.plantrialexpires:
result = user.is_authenticated and r.plantrialexpires >= datetime.date.today()
else: