mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +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
|
return True
|
||||||
|
|
||||||
def check_perm(self, user, perm):
|
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
|
return False
|
||||||
|
|
||||||
if type(perm) == str:
|
if type(perm) == str:
|
||||||
|
Loading…
Reference in New Issue
Block a user