From 5b1c8a06a3a10d263f50a2e3ddf331bb438bc54c Mon Sep 17 00:00:00 2001 From: Dustin Ingram Date: Thu, 21 May 2020 18:34:43 -0500 Subject: [PATCH] Fix Nomination visibility bug self.nominee is a Nominee, not a User --- nominations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nominations/models.py b/nominations/models.py index 58b8c4dbb..2874fc7b8 100644 --- a/nominations/models.py +++ b/nominations/models.py @@ -227,7 +227,7 @@ def visible(self, user=None): if user is None: return False - if user.is_staff or user == self.nominee or user == self.nominator: + if user.is_staff or user == self.nominee.user or user == self.nominator: return True return False