Browse Source

Check comment permission before displaying excerpt

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

2
tildes/tildes/templates/macros/comments.jinja2

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