From dfae9607fe93443c071a766e99e881c337b827a4 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 7 Aug 2023 20:31:37 +0700 Subject: [PATCH] Allow contest editor to view submissions in contest --- judge/models/contest.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/judge/models/contest.py b/judge/models/contest.py index a169bd2..f5ab35b 100644 --- a/judge/models/contest.py +++ b/judge/models/contest.py @@ -542,10 +542,7 @@ class Contest(models.Model, PageVotable, Bookmarkable): return True # If the user is a contest organizer or curator - if ( - user.has_perm("judge.edit_own_contest") - and user.profile.id in self.editor_ids - ): + if user.profile.id in self.editor_ids: return True return False