From 584025acf0339934ceb461ee1ac17a5016a04880 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Sun, 18 Sep 2016 22:50:10 +0200 Subject: [PATCH] Quick fix to hide account number in profile page when not owner user or root --- core/templates/core/user_detail.jinja | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/templates/core/user_detail.jinja b/core/templates/core/user_detail.jinja index 0b31dc14..f9696be0 100644 --- a/core/templates/core/user_detail.jinja +++ b/core/templates/core/user_detail.jinja @@ -57,7 +57,9 @@

{% if get_subscriber(profile).is_subscribed() %} {% trans subscription_end=get_subscriber(profile).subscriptions.last().subscription_end %}Subscribed until {{ subscription_end }}{% endtrans %}
+ {% if user == profile or user.is_root %} {% trans %}Account number: {% endtrans %}{{ profile.customer.account_id }}
+ {% endif %} {# Shows tokens bought by the user #} {{ show_tokens(profile) }} {# Shows slots took by the user #}