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>
<ul>
{% for i in result.users %}
{% if user.can_view(i) %}
<li>
{{ user_link_with_pict(i) }}
</li>
{% endif %}
{% endfor %}
</ul>
<h4>{% trans %}Clubs{% endtrans %}</h4>