Fix user search displaying results that shouldn't be viewed

This commit is contained in:
Antoine Bartuccio 2024-08-09 18:24:12 +02:00
parent 57a8215c6b
commit bf5f72fd9d

View File

@ -10,9 +10,11 @@
<h4>{% trans %}Users{% endtrans %}</h4> <h4>{% trans %}Users{% endtrans %}</h4>
<ul> <ul>
{% for i in result.users %} {% for i in result.users %}
<li> {% if user.can_view(i) %}
{{ user_link_with_pict(i) }} <li>
</li> {{ user_link_with_pict(i) }}
</li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
<h4>{% trans %}Clubs{% endtrans %}</h4> <h4>{% trans %}Clubs{% endtrans %}</h4>