mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-02 08:54:18 +00:00
feat: whitelist for user visibility
This commit is contained in:
1 parent
ffa0b94408
commit
3d7f57b8da
8 files changed
+88
-26
No files matched your search
@@ -146,7 +146,7 @@
|
||||
<label for="{{ input_id }}">
|
||||
{%- endif %}
|
||||
<figure>
|
||||
{%- if user.is_viewable %}
|
||||
{%- if user.can_view(candidature.user) %}
|
||||
{% if candidature.user.profile_pict %}
|
||||
<img class="candidate__picture" src="{{ candidature.user.profile_pict.get_download_url() }}" alt="{% trans %}Profile{% endtrans %}">
|
||||
{% else %}
|
||||
|
||||
Reference in new issue
Block a user