prototype working
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user