fddf
This commit is contained in:
parent
86ee8df2de
commit
2c2fa85b51
2 changed files with 2 additions and 4 deletions
|
@ -232,9 +232,6 @@ class User(Base, Stndrd, Age_times):
|
|||
comments = comments.filter(Comment.deleted_utc == 0)
|
||||
comments = comments.filter(Comment.is_banned == False)
|
||||
|
||||
if v and v.admin_level == 0:
|
||||
comments = comments.filter(or_(Comment.author_id == v.id))
|
||||
|
||||
comments = comments.options(contains_eager(Comment.post))
|
||||
|
||||
now = int(time.time())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue