This commit is contained in:
cuom1999 2023-08-07 20:33:49 +07:00
parent dfae9607fe
commit 7ac43188a4

View file

@ -542,7 +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 user.profile.id in self.editor_ids: if user and user.profile.id in self.editor_ids:
return True return True
return False return False