From: G. Richardson Date: Tue, 6 Oct 2015 09:51:37 +0000 (+0200) Subject: Rechtecheck für BankImport Controller X-Git-Tag: release-3.4.1~656 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6ebec7f9d7ddef3e7f8befb797314c89e1414635;p=kivitendo-erp.git Rechtecheck für BankImport Controller --- diff --git a/SL/Controller/BankImport.pm b/SL/Controller/BankImport.pm index 58faf85a1..867589f10 100644 --- a/SL/Controller/BankImport.pm +++ b/SL/Controller/BankImport.pm @@ -7,6 +7,7 @@ use SL::Locale::String qw(t8); use SL::DB::CsvImportProfile; use SL::Helper::MT940; +__PACKAGE__->run_before('check_auth'); sub action_upload_mt940 { my ($self, %params) = @_; @@ -35,5 +36,9 @@ sub action_import_mt940 { }; +sub check_auth { + $::auth->assert('bank_transaction'); +} + 1;