X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FBankImport.pm;h=867589f104b0a68aae98012f51d6ffaa8a7b1210;hb=e83604f2c7d6d499d9db8d066cc7f637e6f609de;hp=58faf85a19c7d7f384f71ee6ea33c4a2e0d861a8;hpb=3624b119556731da41e4ad395491ebb067f26565;p=kivitendo-erp.git 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;