mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Hide edit link on users email when user is not staff
This commit is contained in:
parent
1ee0b20bca
commit
24d278f04d
1 changed files with 7 additions and 1 deletions
|
@ -12,7 +12,13 @@
|
|||
<th class="price">Prix</th>
|
||||
<th class="amount">Total</th>
|
||||
{% for email, order in delivery.orders.items() %}
|
||||
<th class="person"><a href="/livraison/{{ delivery.id }}/commander?email={{ email }}" title="{{ email }}">{{ email }}</a></th>
|
||||
<th class="person">
|
||||
{% if request.user and request.user.is_staff %}
|
||||
<a href="/livraison/{{ delivery.id }}/commander?email={{ email }}" title="{{ email }}">{{ email }}</a>
|
||||
{% else %}
|
||||
<span title="{{ email }}">{{ email }}</span>
|
||||
{% endif %}
|
||||
</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% for product in delivery.products %}
|
||||
|
|
Loading…
Reference in a new issue