diff --git a/judge/models/contest.py b/judge/models/contest.py index f5ab35b..f9bd0c4 100644 --- a/judge/models/contest.py +++ b/judge/models/contest.py @@ -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