diff --git a/aleksis/apps/kort/tables.py b/aleksis/apps/kort/tables.py index 9cc9b6cc42a8e8a65bdba6b39357874e6c8de5e3..85fb2541ac623816794f255623967a493220fe20 100644 --- a/aleksis/apps/kort/tables.py +++ b/aleksis/apps/kort/tables.py @@ -34,7 +34,8 @@ class CardTable(Table): def render_actions(self, value, record): return render_to_string( - "kort/card/actions.html", dict(pk=value, card=record, printer_form=PrinterSelectForm()) + "kort/card/actions.html", + dict(pk=value, card=record, printer_form=PrinterSelectForm(), user=self.request.user), ) @@ -62,7 +63,9 @@ class CardPrinterTable(Table): ) def render_actions(self, value, record): - return render_to_string("kort/printer/actions.html", dict(pk=value, printer=record)) + return render_to_string( + "kort/printer/actions.html", dict(pk=value, printer=record, user=self.request.user) + ) class CardLayoutTable(Table): @@ -78,7 +81,10 @@ class CardLayoutTable(Table): actions = Column(verbose_name=_("Actions"), accessor=A("pk")) def render_actions(self, value, record): - return render_to_string("kort/card_layout/actions.html", dict(pk=value, card_layout=record)) + return render_to_string( + "kort/card_layout/actions.html", + dict(pk=value, card_layout=record, user=self.request.user), + ) class IssueCardPersonsTable(Table):