mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +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>
|
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user