This commit is contained in:
Aevann1 2021-07-26 03:26:04 +02:00
parent 86ee8df2de
commit 2c2fa85b51
2 changed files with 2 additions and 4 deletions

View file

@ -232,9 +232,6 @@ class User(Base, Stndrd, Age_times):
comments = comments.filter(Comment.deleted_utc == 0) comments = comments.filter(Comment.deleted_utc == 0)
comments = comments.filter(Comment.is_banned == False) 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)) comments = comments.options(contains_eager(Comment.post))
now = int(time.time()) now = int(time.time())

View file

@ -13,7 +13,8 @@
<!--conditions under which a comment might be hidden--> <!--conditions under which a comment might be hidden-->
{% if False %} {% if (c.is_banned or c.deleted_utc > 0 or c.is_blocking or c.is_blocked) and not (v and v.admin_level>0) and not (v and v.id==c.author_id) %}
<div id="comment-{{c.base36id}}" class="comment"> <div id="comment-{{c.base36id}}" class="comment">