Allow contest editor to view submissions in contest

This commit is contained in:
cuom1999 2023-08-07 20:31:37 +07:00
parent 9a889d158c
commit dfae9607fe

View file

@ -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