Move a bunch of moderation tools to admin level 2
This commit is contained in:
parent
f5c3d944e8
commit
20fa9ce79f
8 changed files with 13 additions and 17 deletions
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue