X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FController%2FCsvImport%2FBase.pm;h=2deae45711eb5b58be5a64c624f7c1566d0d73bb;hb=cd07d28992bd8778f0702a9ea0dc937c6d93fd54;hp=2fa788753dd8ed52f12c87a9ddd67256384f17e1;hpb=e902839eeaf164ad540bbc3072213831d9572c63;p=kivitendo-erp.git diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index 2fa788753..2deae4571 100644 --- a/SL/Controller/CsvImport/Base.pm +++ b/SL/Controller/CsvImport/Base.pm @@ -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; - my $last_index = $#$data; my $chunk_size = 100; # one transaction and progress update every 100 objects