exclude merari and permabanned/shadowbanned from chudrama

pull/96/head
Aevann 2023-01-24 07:20:15 +02:00
parent 78738589b5
commit 0f4de38141
1 changed files with 3 additions and 0 deletions

View File

@ -977,6 +977,9 @@ class User(Base):
@property
@lazy
def can_see_chudrama(self):
if self.id == 2074: return False
if self.shadowbanned: return False
if self.is_suspended_permanently: return False
if self.admin_level >= PERMS['VIEW_CHUDRAMA']: return True
if self.client: return True
if self.truescore >= TRUESCORE_CHUDRAMA_MINIMUM: return True