Rechtecheck für BankImport Controller
[kivitendo-erp.git] / SL / Controller / BankImport.pm
index 58faf85..867589f 100644 (file)
@@ -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;