make me able to demod ppl from holes

pull/138/head
Aevann 2023-03-06 20:06:01 +02:00
parent b83aa1d82c
commit f36c5b50bc
1 changed files with 2 additions and 0 deletions

View File

@ -365,6 +365,8 @@ class User(Base):
@lazy
def mod_date(self, sub):
if self.admin_level >= PERMS['MODS_EVERY_HOLE']: return 0
mod_ts = g.db.query(Mod.created_utc).filter_by(user_id=self.id, sub=sub).one_or_none()
if mod_ts is None:
return None