]> wagnertech.de Git - kivitendo-erp.git/commitdiff
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 58faf85a19c7d7f384f71ee6ea33c4a2e0d861a8..867589f104b0a68aae98012f51d6ffaa8a7b1210 100644 (file)
@@ -7,6 +7,7 @@ use SL::Locale::String qw(t8);
 use SL::DB::CsvImportProfile;
 use SL::Helper::MT940;
 
 use SL::DB::CsvImportProfile;
 use SL::Helper::MT940;
 
+__PACKAGE__->run_before('check_auth');
 
 sub action_upload_mt940 {
   my ($self, %params) = @_;
 
 sub action_upload_mt940 {
   my ($self, %params) = @_;
@@ -35,5 +36,9 @@ sub action_import_mt940 {
 
 };
 
 
 };
 
+sub check_auth {
+  $::auth->assert('bank_transaction');
+}
+
 1;
 
 1;