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
|
return True
|
||||||
|
|
||||||
# If the user is a contest organizer or curator
|
# If the user is a contest organizer or curator
|
||||||
if (
|
if user.profile.id in self.editor_ids:
|
||||||
user.has_perm("judge.edit_own_contest")
|
|
||||||
and user.profile.id in self.editor_ids
|
|
||||||
):
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue