apply truescore_minimum to modding /h/test
parent
4596fd3698
commit
1bb9462c06
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue