Skip to content
Snippets Groups Projects
Commit 3cabf5b8 authored by Haakon Gunleiksrud's avatar Haakon Gunleiksrud
Browse files

get fix for private workouts not getting fetched

parent 0fc5f4d1
No related branches found
No related tags found
3 merge requests!15Dev,!10Dev,!9Fr5 bb testing
......@@ -145,6 +145,7 @@ class WorkoutList(
qs = Workout.objects.filter(
Q(visibility="PU")
| (Q(visibility="CO") & Q(owner__coach=self.request.user))
| (Q(visibility="PR") & Q(owner=self.request.user))
).distinct()
return qs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment