mirror of
https://github.com/minetest/contentdb.git
synced 2025-04-02 00:13:00 +02:00
Fix crash on review voting on homepage
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user