Fix bug
This commit is contained in:
parent
dfae9607fe
commit
7ac43188a4
1 changed files with 1 additions and 1 deletions
|
@ -542,7 +542,7 @@ class Contest(models.Model, PageVotable, Bookmarkable):
|
|||
return True
|
||||
|
||||
# If the user is a contest organizer or curator
|
||||
if user.profile.id in self.editor_ids:
|
||||
if user and user.profile.id in self.editor_ids:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue