Skip to content

Commit 239c2b3

Browse files
committed
Fix bug org admin couldn't view all sub
1 parent 6ab0824 commit 239c2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

judge/views/organization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ def _get_queryset(self):
679679
queryset=ProblemTranslation.objects.filter(
680680
language=self.request.LANGUAGE_CODE), to_attr='_trans'))
681681
# if not org admin -> only view submissions to public problems
682-
if not self.object.is_admin(self.request.profile) or not self.request.user.is_superuser:
682+
if not self.object.is_admin(self.request.profile) and not self.request.user.is_superuser:
683683
queryset = queryset.filter(
684684
contest_object__isnull=True,
685685
problem__is_organization_private=True,

0 commit comments

Comments
 (0)