Fix releases from "Not Joined" users being unapproved

This commit is contained in:
rubenwardy 2024-01-10 00:07:51 +00:00
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: