Private
Public Access
1
0

prototype working

This commit is contained in:
Sander Roosendaal
2021-11-09 21:50:17 +01:00
parent 5118255c73
commit 94305332a5
2 changed files with 18 additions and 11 deletions

View File

@@ -2615,8 +2615,8 @@ def rower_view_instantplan(request,id='',userid=0):
).order_by("-date")
if request.method == 'POST' and not request.user.is_anonymous:
if not can_plan(request.user): # pragma: no cover
messages.error(request,'You must be on a <a href="/rowers/paidplans">paid plan</a> to use this functionality')
if not can_plan(request.user) and plan.price == 0: # pragma: no cover
messages.error(request,'You must be on a <a href="/rowers/paidplans">paid plan</a> to use free training plans')
url = reverse('rower_view_instantplan',kwargs={
'id':id,
})