X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcust_main_note-import.cgi;h=b93c5c1cc5ff278b6b37ab0bc244993476ebb33f;hb=df9864e8fa039c889005c01b05489fde8c836784;hp=07b922f6c7dca729123544ab6267f87398d34a79;hpb=587f0384fb03179f6b504daeada93e193d2ea27f;p=freeside.git diff --git a/httemplate/misc/cust_main_note-import.cgi b/httemplate/misc/cust_main_note-import.cgi index 07b922f6c..b93c5c1cc 100644 --- a/httemplate/misc/cust_main_note-import.cgi +++ b/httemplate/misc/cust_main_note-import.cgi @@ -122,7 +122,7 @@ % my $line; % my $row = 0; % while ( defined($line=<$fh>) ) { -% chomp $line; +% $line =~ s/(\S*)\s*$/$1/; % $line =~ s/^(.*)(#!).*/$1/; % % $csv->parse($line) or die "can't parse line: " . $csv->error_input(); @@ -198,3 +198,10 @@ + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +