mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 02:54:20 +00:00
forum: display only viewable topics in "last unread"
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
parent
caa0c2099b
commit
2847a4547e
@ -17,7 +17,9 @@
|
|||||||
<a class="ib" href="{{ url('forum:last_unread') }}">{% trans %}Refresh{% endtrans %}</a>
|
<a class="ib" href="{{ url('forum:last_unread') }}">{% trans %}Refresh{% endtrans %}</a>
|
||||||
</p>
|
</p>
|
||||||
{% for t in page_obj.object_list %}
|
{% for t in page_obj.object_list %}
|
||||||
|
{% if user.can_view(t) %}
|
||||||
{{ display_topic(t, user, True) }}
|
{{ display_topic(t, user, True) }}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<p style="text-align: right; background: #d8e7f3;">
|
<p style="text-align: right; background: #d8e7f3;">
|
||||||
|
Loading…
Reference in New Issue
Block a user