mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 02:54:20 +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 %}
|
||||||
|
{% if user.can_view(i) %}
|
||||||
<li>
|
<li>
|
||||||
{{ user_link_with_pict(i) }}
|
{{ user_link_with_pict(i) }}
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<h4>{% trans %}Clubs{% endtrans %}</h4>
|
<h4>{% trans %}Clubs{% endtrans %}</h4>
|
||||||
|
Loading…
Reference in New Issue
Block a user