X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d180d84e035a21291e2dc186b4430e3336998156..0935b012a57196f883b59ec97bb7fe0882210c5a:/SL/Controller/BankImport.pm 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;