Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkcuys committed Aug 23, 2022
1 parent 427f761 commit 056e869
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions studygroups/views/facilitate.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['meetings'] = [m.to_json() for m in self.object.meeting_set.active()]
context['facilitators'] = [f.user_id for f in self.object.facilitator_set.all()]
# TODO - only do this if
# a) the currently authenticated user is in a team
# or b) if it's a super user and the learning circle is part of a team
# only do this if
# a) the currently authenticated user is in a team
# or b) if it's a super user and the learning circle is part of a team
if self.request.user.is_staff and self.object.team or TeamMembership.objects.active().filter(user=self.request.user).exists():
context['team'] = [t.to_json() for t in self.object.team.teammembership_set.active()]
context['hide_footer'] = True
Expand Down

0 comments on commit 056e869

Please sign in to comment.