mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-09 17:13:45 +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