Private
Public Access
1
0

making pass tests

This commit is contained in:
Sander Roosendaal
2020-01-15 20:50:16 +01:00
parent 8683d8eaa4
commit 86869f595e
4 changed files with 14 additions and 13 deletions

View File

@@ -949,7 +949,7 @@ def check_teams_on_change(sender, **kwargs):
#if instance.protrialexpires < datetime.date.today() and instance.plantrialexpires < datetime.date.today():
for id in pk_set:
team = Team.objects.get(id=id)
if not can_join_team(instance,team):
if not can_join_team(instance.user,team):
raise ValidationError(
"You cannot join a team led by a Pro, Free Coach Plan or Self-Coach user"
)