Skip to content

Commit

Permalink
Fix crash on review voting on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Dec 4, 2023
1 parent a1a03d6 commit f36c11f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ def __eq__(self, other):
if other is None:
return False

if not self.is_authenticated or not other.is_authenticated:
# Anonymous users
if "id" not in self or "id" not in other:
return False

assert self.id > 0
Expand Down

0 comments on commit f36c11f

Please sign in to comment.