diff --git a/files/classes/user.py b/files/classes/user.py index 1223163cfa..8924afe85d 100755 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -496,11 +496,11 @@ class User(Base): @property @lazy def is_suspended(self): - # if self.unban_utc and self.unban_utc < time.time(): - # self.is_banned = 0 - # self.unban_utc = 0 - # g.db.add(self) - # g.db.commit() + if self.unban_utc and self.unban_utc < time.time(): + self.is_banned = 0 + self.unban_utc = 0 + g.db.add(self) + g.db.commit() return (self.is_banned and (not self.unban_utc or self.unban_utc > time.time()))