apply truescore_minimum to modding /h/test

pull/216/head
Aevann 2023-10-29 16:34:05 +03:00
parent 4596fd3698
commit 1bb9462c06
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ class User(Base):
@lazy
def mods(self, hole):
if self.is_permabanned or self.shadowbanned: return False
if hole == 'test': return True
if hole == 'test'and self.truescore >= TRUESCORE_MINIMUM: return True
if self.admin_level >= PERMS['MODS_EVERY_HOLE']: return True
try:
return any(map(lambda x: x.hole == hole, self.hole_mods))