SimpleSystemSetting: Umstellung von »Artikel-Klassifizierungen«
[kivitendo-erp.git] / SL / Controller / CsvImport / Base.pm
index 17a3bfd..2deae45 100644 (file)
@@ -339,6 +339,10 @@ sub check_objects {
 sub check_duplicates {
 }
 
+sub check_auth {
+  $::auth->assert('config');
+}
+
 sub check_std_duplicates {
   my $self = shift;
 
@@ -461,8 +465,6 @@ sub save_objects {
 
   $self->controller->track_progress(phase => 'saving data', progress => 0); # scale from 45..95%;
 
-  my $dbh = $data->[0]{object}->db->dbh;
-
   my $last_index = $#$data;
   my $chunk_size = 100;      # one transaction and progress update every 100 objects