mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-14 03:23:46 +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:
|
if other is None:
|
||||||
return False
|
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
|
return False
|
||||||
|
|
||||||
assert self.id > 0
|
assert self.id > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user