From 610ed8fca5fe4cd3028dda54b1c6ece2ae702d79 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 10 Jan 2024 00:07:51 +0000 Subject: [PATCH] Fix releases from "Not Joined" users being unapproved --- app/models/packages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: