diff --git a/files/classes/user.py b/files/classes/user.py index 810e33206..a76ec3de9 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -1135,7 +1135,6 @@ class User(Base): if self.is_permabanned: return False if self.admin_level >= PERMS['VIEW_RESTRICTED_HOLES']: return True - if self.truescore >= TRUESCORE_RESTRICTED_HOLES_MINIMUM: return True return None @@ -1146,6 +1145,7 @@ class User(Base): if self.can_see_restricted_holes != None: return self.can_see_restricted_holes + if self.truescore >= TRUESCORE_CHUDRAMA_MINIMUM: return True if self.chud: return True if self.patron: return True return False @@ -1158,6 +1158,8 @@ class User(Base): if self.can_see_restricted_holes != None: return self.can_see_restricted_holes + if self.truescore >= TRUESCORE_CC_MINIMUM: return True + return False @property diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index a1ec4e733..5b2a57a9f 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -539,7 +539,8 @@ COSMETIC_AWARD_COIN_AWARD_PCT = 0.50 TRUESCORE_CHAT_MINIMUM = 0 TRUESCORE_GHOST_MINIMUM = 0 TRUESCORE_DONATE_MINIMUM = 1 -TRUESCORE_RESTRICTED_HOLES_MINIMUM = 100 +TRUESCORE_CC_MINIMUM = 0 +TRUESCORE_CHUDRAMA_MINIMUM = 100 LOGGEDIN_ACTIVE_TIME = 15 * 60 PFP_DEFAULT_MARSEY = True