fix bug
This commit is contained in:
@@ -373,7 +373,9 @@ def is_workout_team(user,workout):
|
|||||||
def can_view_workout(user,workout):
|
def can_view_workout(user,workout):
|
||||||
if workout.privacy != 'private':
|
if workout.privacy != 'private':
|
||||||
return True
|
return True
|
||||||
return user.rower == workout.user
|
if user.is_anonymous:
|
||||||
|
return False
|
||||||
|
return user == workout.user.user
|
||||||
|
|
||||||
can_change_workout = is_workout_user
|
can_change_workout = is_workout_user
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user