Move a bunch of moderation tools to admin level 2

This commit is contained in:
Ben Rog-Wilhelm 2022-09-06 18:42:36 -05:00 committed by Ben Rog-Wilhelm
parent f5c3d944e8
commit 20fa9ce79f
8 changed files with 13 additions and 17 deletions

View file

@ -174,7 +174,7 @@ class User(Base):
def can_manage_reports(self):
return self.admin_level > 2
return self.admin_level > 1
def should_comments_be_filtered(self):
if self.admin_level > 0:
@ -550,8 +550,8 @@ class User(Base):
'profile_url': self.profile_url,
'bannerurl': self.banner_url,
'bio_html': self.bio_html_eager,
'post_count': 0 if self.shadowbanned and not (v and (v.shadowbanned or v.admin_level > 2)) else self.post_count,
'comment_count': 0 if self.shadowbanned and not (v and (v.shadowbanned or v.admin_level > 2)) else self.comment_count,
'post_count': 0 if self.shadowbanned and not (v and (v.shadowbanned or v.admin_level > 1)) else self.post_count,
'comment_count': 0 if self.shadowbanned and not (v and (v.shadowbanned or v.admin_level > 1)) else self.comment_count,
'badges': [x.path for x in self.badges],
'notes': [x.json() for x in self.notes]
}