From: Moritz Bunkus Date: Thu, 12 May 2011 09:48:49 +0000 (+0200) Subject: Rechteprüfung bei Zugriff auf Zahlungsbedingungen-Controller X-Git-Tag: release-2.6.3~25^2~43 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2f6e2e4013e349e7c5f6ee8108b04869227473d8;p=kivitendo-erp.git Rechteprüfung bei Zugriff auf Zahlungsbedingungen-Controller Conflicts: SL/Controller/PaymentTerm.pm --- 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 #