From a21015406d710a4fc3025422738ec297df078fb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 2 Oct 2015 17:31:28 +0200 Subject: [PATCH] Recht prinzipiell setzen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Nicht nur auf den Menüaufruf verlassen, sondern den gesamten Controller vor Ausführung auf das Recht delivery_value_report prüfen. --- SL/Controller/DeliveryValueReport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/DeliveryValueReport.pm b/SL/Controller/DeliveryValueReport.pm index 3134f75ed..e41a2ade0 100644 --- a/SL/Controller/DeliveryValueReport.pm +++ b/SL/Controller/DeliveryValueReport.pm @@ -19,7 +19,7 @@ use Rose::Object::MakeMethods::Generic ( 'scalar --get_set_init' => [ qw(models vc all_employees all_businesses) ], ); - +__PACKAGE__->run_before(sub { $::auth->assert('delivery_value_report'); }); my %sort_columns = ( reqdate => t8('Reqdate'), -- 2.20.1