Rechtecheck für BankImport Controller
authorG. Richardson <information@kivitendo-premium.de>
Tue, 6 Oct 2015 09:51:37 +0000 (11:51 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Tue, 6 Oct 2015 10:15:17 +0000 (12:15 +0200)
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;