Allow contest editor to view submissions in contest
This commit is contained in:
parent
9a889d158c
commit
dfae9607fe
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue