Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-02-24 15:36:21 +01:00
9 changed files with 157 additions and 44 deletions

View File

@@ -259,9 +259,9 @@ def is_rower_team_member(user,rower):
for team in teams:
if team.private == 'open':
if team in rower.team.all():
if team in user.rower.team.all():
return True
if team.manager == rower.user:
if team.manager == user:
return True
return False