Fix bug
This commit is contained in:
parent
7ac43188a4
commit
f9bdc75176
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue