X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/2ef19c818a05b2baa2552ae5b4edbcc16bcfc986..d1d70f4ad540f4d57d1b577b337b6db38074e223:/SL/Controller/CustomerVendorTurnover.pm diff --git a/SL/Controller/CustomerVendorTurnover.pm b/SL/Controller/CustomerVendorTurnover.pm index 5356a73a0..f0047e5b4 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__ @@ -456,8 +461,6 @@ Gets all kinds of records like orders, request orders, quotations, invoices, ema wich belong to customer/vendor and displays them in an extra tab "Records". -=back - =head1 URL ACTIONS =over 4 @@ -522,4 +525,4 @@ None yet. :) W. Hahn Ewh@futureworldsearch.netE -=back +=cut