From 2f6e2e4013e349e7c5f6ee8108b04869227473d8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 12 May 2011 11:48:49 +0200 Subject: [PATCH] =?utf8?q?Rechtepr=C3=BCfung=20bei=20Zugriff=20auf=20Zahlu?= =?utf8?q?ngsbedingungen-Controller?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Conflicts: SL/Controller/PaymentTerm.pm --- SL/Controller/PaymentTerm.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SL/Controller/PaymentTerm.pm b/SL/Controller/PaymentTerm.pm index 92cff0cff..55401ba13 100644 --- a/SL/Controller/PaymentTerm.pm +++ b/SL/Controller/PaymentTerm.pm @@ -13,6 +13,7 @@ use Rose::Object::MakeMethods::Generic scalar => [ qw(payment_term languages) ], ); +__PACKAGE__->run_before('check_auth'); __PACKAGE__->run_before('load_payment_term', only => [ qw( edit update destroy move_up move_down) ]); __PACKAGE__->run_before('load_languages', only => [ qw(new list edit create update) ]); @@ -77,6 +78,14 @@ sub action_reorder { $self->render(type => 'js', inline => '1;'); } +# +# filters +# + +sub check_auth { + $::auth->assert('config'); +} + # # helpers # -- 2.20.1