Private
Public Access
1
0

small fixes coach trial

This commit is contained in:
Sander Roosendaal
2022-09-06 08:45:27 +02:00
parent c541ea0562
commit c9f94415ac
2 changed files with 5 additions and 4 deletions

View File

@@ -325,7 +325,7 @@ def create_coaching_offer(coach, user):
while code in codes: # pragma: no cover
code = uuid.uuid4().hex[:10].upper()
if 'coach' in coach.rowerplan and get_coach_club_size(coach) < coach.clubsize:
if is_coach(coach.user) and get_coach_club_size(coach) < coach.clubsize:
rekwest = CoachOffer(coach=coach, user=user, code=code)
rekwest.save()