mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix crash on review voting on homepage
This commit is contained in:
parent
a1a03d6de4
commit
36c63b4657
@ -318,7 +318,8 @@ class User(db.Model, UserMixin):
|
||||
if other is None:
|
||||
return False
|
||||
|
||||
if not self.is_authenticated or not other.is_authenticated:
|
||||
# Anonymous users
|
||||
if not hasattr(self, "id") or not hasattr(other, "id"):
|
||||
return False
|
||||
|
||||
assert self.id > 0
|
||||
|
Loading…
Reference in New Issue
Block a user