Browse Source

Check comment permission before displaying excerpt

merge-requests/34/head
Chad Birch 6 years ago
parent
commit
d1a73f4a12
  1. 4
      tildes/tildes/templates/macros/comments.jinja2

4
tildes/tildes/templates/macros/comments.jinja2

@ -72,7 +72,9 @@
>Parent</a> >Parent</a>
{% endif %} {% endif %}
<div class="comment-excerpt">{{ comment.excerpt }}</div>
{% if request.has_permission("view", comment) %}
<div class="comment-excerpt">{{ comment.excerpt }}</div>
{% endif %}
</header> </header>
{% if request.has_permission('view', comment) %} {% if request.has_permission('view', comment) %}

Loading…
Cancel
Save