mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix releases from "Not Joined" users being unapproved
This commit is contained in:
parent
69ba1c3fad
commit
610ed8fca5
@ -1066,7 +1066,7 @@ class PackageRelease(db.Model):
|
||||
return True
|
||||
|
||||
def check_perm(self, user, perm):
|
||||
if not user.is_authenticated or user.is_banned:
|
||||
if not hasattr(user, "rank") or user.is_banned:
|
||||
return False
|
||||
|
||||
if type(perm) == str:
|
||||
|
Loading…
Reference in New Issue
Block a user