From 3afa7d9ae781f9821965d344feb239c343bf8b64 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 28 Oct 2024 01:58:17 +0300 Subject: [PATCH] add account age requirement to view countryclub (1 month) --- files/classes/user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index f062616c7..7fc7d429a 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -1352,7 +1352,9 @@ class User(Base): if self.can_see_restricted_holes != None: return self.can_see_restricted_holes - if self.truescore >= TRUESCORE_MINIMUM: return True + one_month_ago = time.time() - 2592000 + if self.truescore >= TRUESCORE_MINIMUM and self.created_utc < one_month_ago: + return True if SITE == 'rdrama.net' and self.id == 5237: return True