projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to compensate for changes in r5562,
[freeside.git]
/
httemplate
/
misc
/
cust_main_note-import.cgi
diff --git
a/httemplate/misc/cust_main_note-import.cgi
b/httemplate/misc/cust_main_note-import.cgi
index
07b922f
..
b93c5c1
100644
(file)
--- 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>) ) {
% 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();
% $line =~ s/^(.*)(#!).*/$1/;
%
% $csv->parse($line) or die "can't parse line: " . $csv->error_input();
@@
-198,3
+198,10
@@
</FORM>
</BODY>
</HTML>
</FORM>
</BODY>
</HTML>
+
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Import');
+
+</%init>