further testing passing
This commit is contained in:
@@ -87,14 +87,15 @@ def can_start_trial(user):
|
||||
if user.is_anonymous:
|
||||
return False
|
||||
|
||||
return user.rower.protrialexpires > datetime.date(1970,1,1)
|
||||
|
||||
return user.rower.protrialexpires == datetime.date(1970,1,1)
|
||||
|
||||
@rules.predicate
|
||||
def can_start_plantrial(user):
|
||||
if user.is_anonymous:
|
||||
return False
|
||||
|
||||
return user.rower.plantrialexpires > datetime.date(1970,1,1)
|
||||
return user.rower.plantrialexpires == datetime.date(1970,1,1)
|
||||
|
||||
@rules.predicate
|
||||
def is_coach(user):
|
||||
|
||||
Reference in New Issue
Block a user