Don't filter comments from admins
This commit is contained in:
parent
ba9689f017
commit
420e3e1e8e
1 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,8 @@ class User(Base):
|
|||
return self.admin_level > 2
|
||||
|
||||
def should_comments_be_filtered(self):
|
||||
if self.admin_level > 0:
|
||||
return False
|
||||
site_settings = app.config['SETTINGS']
|
||||
minComments = site_settings.get('FilterCommentsMinComments', 0)
|
||||
minKarma = site_settings.get('FilterCommentsMinKarma', 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue