From 391f3bde8fc06be67c35a57b5e5ab31c2f9709d3 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 6 Sep 2021 11:56:56 +0200 Subject: [PATCH] Fix permission to see note balance when we can't see profile detail (e.g. for note account) Signed-off-by: Yohann D'ANELLO --- .../member/templates/member/includes/profile_info.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/member/templates/member/includes/profile_info.html b/apps/member/templates/member/includes/profile_info.html index e1941d23..378d54e2 100644 --- a/apps/member/templates/member/includes/profile_info.html +++ b/apps/member/templates/member/includes/profile_info.html @@ -39,13 +39,13 @@
{% trans 'address'|capfirst %}
{{ user_object.profile.address }}
- {% if user_object.note and "note.view_note"|has_perm:user_object.note %} -
{% trans 'balance'|capfirst %}
-
{{ user_object.note.balance | pretty_money }}
-
{% trans 'paid'|capfirst %}
{{ user_object.profile.paid|yesno }}
- {% endif %} + {% endif %} + + {% if user_object.note and "note.view_note"|has_perm:user_object.note %} +
{% trans 'balance'|capfirst %}
+
{{ user_object.note.balance | pretty_money }}
{% endif %}