master
Aevann1 2022-02-05 23:16:51 +02:00
parent 79d90cfa67
commit ff60c3c821
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class User(Base):
@lazy
def mods(self, sub):
return g.db.query(Mod.user_id).filter_by(user_id=self.id, sub=sub).one_or_none()
return self.admin_level > 1 or g.db.query(Mod.user_id).filter_by(user_id=self.id, sub=sub).one_or_none()
@property
@lazy