better protection of private workouts
This commit is contained in:
@@ -837,7 +837,7 @@ def checkworkoutuser(user,workout):
|
||||
return True
|
||||
elif teams:
|
||||
for team in teams:
|
||||
if user == team.manager:
|
||||
if user == team.manager and workout.privacy == 'visible':
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user