This commit is contained in:
cuom1999 2023-08-07 20:36:28 +07:00
parent 7ac43188a4
commit f9bdc75176

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 and user.profile.id in self.editor_ids: if hasattr(user, "profile") and user.profile.id in self.editor_ids:
return True return True
return False return False