X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FPaymentTerm.pm;h=3a768a2d449076c8791ba0d232c7e617f48f660b;hb=ccacef74f97842c0297a735fe7d81987adb5e6d6;hp=92cff0cff2f3be963b07fb21fa4c049c422213b9;hpb=662b757f97c456d1a8f93f1f37ae188b945da42e;p=kivitendo-erp.git diff --git a/SL/Controller/PaymentTerm.pm b/SL/Controller/PaymentTerm.pm index 92cff0cff..3a768a2d4 100644 --- a/SL/Controller/PaymentTerm.pm +++ b/SL/Controller/PaymentTerm.pm @@ -13,7 +13,8 @@ use Rose::Object::MakeMethods::Generic scalar => [ qw(payment_term languages) ], ); -__PACKAGE__->run_before('load_payment_term', only => [ qw( edit update destroy move_up move_down) ]); +__PACKAGE__->run_before('check_auth'); +__PACKAGE__->run_before('load_payment_term', only => [ qw( edit update destroy) ]); __PACKAGE__->run_before('load_languages', only => [ qw(new list edit create update) ]); # @@ -74,7 +75,15 @@ sub action_reorder { } }); - $self->render(type => 'js', inline => '1;'); + $self->render('1;', { type => 'js', inline => 1 }); +} + +# +# filters +# + +sub check_auth { + $::auth->assert('config'); } #