Skip to content

Commit ba881e5

Browse files
authored
Fix Nomination visibility bug (#1588)
self.nominee is a Nominee, not a User
1 parent d906512 commit ba881e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nominations/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def visible(self, user=None):
227227
if user is None:
228228
return False
229229

230-
if user.is_staff or user == self.nominee or user == self.nominator:
230+
if user.is_staff or user == self.nominee.user or user == self.nominator:
231231
return True
232232

233233
return False

0 commit comments

Comments
 (0)