make me able to demod ppl from holes
parent
b83aa1d82c
commit
f36c5b50bc
|
@ -365,6 +365,8 @@ class User(Base):
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def mod_date(self, sub):
|
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()
|
mod_ts = g.db.query(Mod.created_utc).filter_by(user_id=self.id, sub=sub).one_or_none()
|
||||||
if mod_ts is None:
|
if mod_ts is None:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue