From 94ebf17421d5c36082909c1b01c7a6b8b1540493 Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Tue, 11 Sep 2018 12:35:06 +0200 Subject: [PATCH] Kundenstatistik: Rechte abgefragt --- SL/Controller/CustomerVendorTurnover.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SL/Controller/CustomerVendorTurnover.pm b/SL/Controller/CustomerVendorTurnover.pm index 5356a73a0..102c27a09 100644 --- a/SL/Controller/CustomerVendorTurnover.pm +++ b/SL/Controller/CustomerVendorTurnover.pm @@ -9,6 +9,7 @@ use SL::DB::EmailJournal; use SL::DB::Letter; use SL::DB; +__PACKAGE__->run_before('check_auth'); sub action_list_turnover { my ($self) = @_; @@ -95,7 +96,7 @@ sub action_count_open_items_by_month { my $cv = $::form->{id}; - my $query = <render('customer_vendor_turnover/letter_statistic', { layout => 0 }, letters => $letters); } +sub check_auth { + $::auth->assert('show_extra_record_tab_customer | show_extra_record_tab_vendor'); +} + 1; __END__ -- 2.20.1