Skip to content

Commit

Permalink
maor
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Jan 6, 2024
1 parent d9238f1 commit 611a2f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions judge/views/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def get_context_data(self, **kwargs):
context = super(OrganizationHome, self).get_context_data(**kwargs)
context['title'] = self.object.name
context['can_edit'] = self.can_edit_organization()

context['is_member'] = self.request.profile in self.object if self.request.user.is_authenticated else False
context['new_problems'] = Problem.objects.filter(is_public=True, is_organization_private=True,
organizations=self.object) \
Expand Down

0 comments on commit 611a2f1

Please sign in to comment.