allow tempbanned nibbas to mod holes

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-01 19:23:09 +02:00
parent 3d3abe539e
commit 186616728b
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class User(Base):
@lazy
def mods(self, sub):
if self.is_suspended or self.shadowbanned: return False
if self.is_suspended_permanently or self.shadowbanned: return False
return self.admin_level > 2 or bool(g.db.query(Mod.user_id).filter_by(user_id=self.id, sub=sub).one_or_none())
@lazy