mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-10 00:03:24 +00:00
Fix user search displaying results that shouldn't be viewed
This commit is contained in:
parent
57a8215c6b
commit
bf5f72fd9d
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user