# Censor payments

* censor payments if entry is not shared with user
* updates translations
This commit is contained in:
2024-08-19 09:39:58 +02:00
parent 5039da28aa
commit c8948ddaea
2 changed files with 71 additions and 56 deletions

View File

@@ -46,12 +46,20 @@
{% for pay in obj.payments.all %}
<tr>
<td class="align-middle">
{{ pay.amount|floatformat:2 }} €
{% if has_access %}
{{ pay.amount|floatformat:2 }} €
{% else %}
***
{% endif %}
</td>
<td class="align-middle">{{ pay.due_on|default_if_none:"---" }}</td>
<td class="align-middle">
<div class="scroll-150">
{{ pay.comment }}
{% if has_access %}
{{ pay.comment }}
{% else %}
{% trans 'This data is not shared with you' %}
{% endif %}
</div>
</td>
<td class="align-middle float-right">