Skip to content
Snippets Groups Projects
Commit 52f571a5 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix permission in template

parent 13afecce
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
{% has_perm 'paweljong.manage_registration' user registration as can_manage_registration %}
{% has_perm 'paweljong.delete_registration' user registration as can_delete_registration %}
{% has_perm 'paweljong.send_notification_mail' user registration as can_send_notification %}
{% has_perm 'tezor.can_print_invoice' user registration as can_print_invoice %}
{% has_perm 'tezor.view_invoice_rule' user registration as can_view_invoice %}
{% if can_manage_registration or can_manage_registration_preferences or can_delete_registration or can_send_notification %}
<p>
......@@ -38,7 +38,7 @@
</a>
{% endif %}
{% if can_print_invoice %}
{% if can_view_invoice %}
<a href="{% url 'invoice_by_token' registration.get_invoice.token %}" class="btn waves-effect waves-light">
<i class="material-icons left">attach_money</i>
{% trans "Invoice" %}
......
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