X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e902839eeaf164ad540bbc3072213831d9572c63..0d5564ee4eaf6af6cbcc0c59b08e9ed16c828b49:/SL/Controller/CsvImport/Base.pm?ds=inline diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index 2fa788753..e9049899b 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,7 +465,7 @@ sub save_objects { $self->controller->track_progress(phase => 'saving data', progress => 0); # scale from 45..95%; - my $dbh = $data->[0]{object}->db; + my $dbh = $data->[0]{object}->db->dbh; my $last_index = $#$data; my $chunk_size = 100; # one transaction and progress update every 100 objects