Commit 3a6f7009 authored by Sli's avatar Sli

Fix display rights in user profile for mailing

parent e82e338e
......@@ -59,9 +59,9 @@
</tbody>
</table>
{% if user.mailing_subscriptions.exists() %}
{% if profile.mailing_subscriptions.exists() and (profile.id == user.id or user.is_root) %}
<h4>{% trans %}Subscribed mailing lists{% endtrans %}</h4>
{% for sub in user.mailing_subscriptions.all() %}
{% for sub in profile.mailing_subscriptions.all() %}
<p>{{ sub }} <a href="{{ url('club:mailing_subscription_delete', mailing_subscription_id=sub.id) }}">{% trans %}Unsuscribe{% endtrans %}</a></p>
{% endfor %}
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment