From 52f571a565bdbbffad85468b2ebedae955762b5a Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Sat, 12 Mar 2022 01:08:57 +0100
Subject: [PATCH] Fix permission in template

---
 .../templates/paweljong/event_registration/full.html          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aleksis/apps/paweljong/templates/paweljong/event_registration/full.html b/aleksis/apps/paweljong/templates/paweljong/event_registration/full.html
index c7b30e4..14ebcf9 100644
--- a/aleksis/apps/paweljong/templates/paweljong/event_registration/full.html
+++ b/aleksis/apps/paweljong/templates/paweljong/event_registration/full.html
@@ -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" %}
-- 
GitLab