Skip to content
Snippets Groups Projects
Verified Commit 391f3bde authored by ynerant's avatar ynerant
Browse files

Fix permission to see note balance when we can't see profile detail (e.g. for note account)


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent ad04e459
2 merge requests!177Corrections de bugs,!176Corrections de bugs
Pipeline #9054 passed with warnings with stages
in 15 minutes and 48 seconds
......@@ -39,13 +39,13 @@
<dt class="col-xl-6">{% trans 'address'|capfirst %}</dt>
<dd class="col-xl-6">{{ user_object.profile.address }}</dd>
{% if user_object.note and "note.view_note"|has_perm:user_object.note %}
<dt class="col-xl-6">{% trans 'balance'|capfirst %}</dt>
<dd class="col-xl-6">{{ user_object.note.balance | pretty_money }}</dd>
<dt class="col-xl-6">{% trans 'paid'|capfirst %}</dt>
<dd class="col-xl-6">{{ user_object.profile.paid|yesno }}</dd>
{% endif %}
{% endif %}
{% if user_object.note and "note.view_note"|has_perm:user_object.note %}
<dt class="col-xl-6">{% trans 'balance'|capfirst %}</dt>
<dd class="col-xl-6">{{ user_object.note.balance | pretty_money }}</dd>
{% endif %}
</dl>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment