From 3a6f7009fd51aa92c665a248989de37ed06812a5 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Fri, 18 Aug 2017 23:09:01 +0200 Subject: [PATCH] Fix display rights in user profile for mailing --- core/templates/core/user_clubs.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/templates/core/user_clubs.jinja b/core/templates/core/user_clubs.jinja index 9d138695..222a3eb7 100644 --- a/core/templates/core/user_clubs.jinja +++ b/core/templates/core/user_clubs.jinja @@ -59,9 +59,9 @@ -{% if user.mailing_subscriptions.exists() %} +{% if profile.mailing_subscriptions.exists() and (profile.id == user.id or user.is_root) %}

{% trans %}Subscribed mailing lists{% endtrans %}

- {% for sub in user.mailing_subscriptions.all() %} + {% for sub in profile.mailing_subscriptions.all() %}

{{ sub }} {% trans %}Unsuscribe{% endtrans %}

{% endfor %} {% endif %}