mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-25 17:21:15 +00:00
Fix display rights in user profile for mailing
This commit is contained in:
parent
e82e338e76
commit
3a6f7009fd
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user