forum: display only viewable topics in "last unread"

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia 2017-09-03 12:23:26 +02:00
parent caa0c2099b
commit 2847a4547e

View File

@ -17,7 +17,9 @@
<a class="ib" href="{{ url('forum:last_unread') }}">{% trans %}Refresh{% endtrans %}</a>
</p>
{% for t in page_obj.object_list %}
{% if user.can_view(t) %}
{{ display_topic(t, user, True) }}
{% endif %}
{% endfor %}
<p style="text-align: right; background: #d8e7f3;">