diff --git a/app/models/packages.py b/app/models/packages.py index 04d9f946..f7ed427e 100644 --- a/app/models/packages.py +++ b/app/models/packages.py @@ -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: