From 4e86e20a5ab33ff0c03b37aaae796efdc3cd1dc8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 14 May 2023 19:57:25 +0300 Subject: [PATCH] allow [patrons] --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 63ce6ba1a..78ea745c9 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -1045,7 +1045,7 @@ class User(Base): if not cls.can_see(user, other.author): return False if user and user.id == other.author_id: return True if isinstance(other, Submission): - if not (user and user.patron) and other.title.lower().startswith('[paypigs]'): + if not (user and user.patron) and (other.title.lower().startswith('[paypigs]') or other.title.lower().startswith('[patrons]')): return False if other.sub and not cls.can_see(user, other.subr): return False