From: jeff Date: Tue, 20 Mar 2007 20:11:07 +0000 (+0000) Subject: acls on new import X-Git-Tag: TRIXBOX_2_6~584 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9f4b217a918ce2fd00138fb91f50ee21a2a77bae;hp=ac0ffef1dd511febd1ffa851dfd8b3772b968b09 acls on new import --- diff --git a/httemplate/misc/cust_main_note-import.cgi b/httemplate/misc/cust_main_note-import.cgi index 07b922f6c..690ca783d 100644 --- a/httemplate/misc/cust_main_note-import.cgi +++ b/httemplate/misc/cust_main_note-import.cgi @@ -198,3 +198,10 @@ + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + + diff --git a/httemplate/misc/cust_main_note-import.html b/httemplate/misc/cust_main_note-import.html index 67f49f326..d8fefa732 100644 --- a/httemplate/misc/cust_main_note-import.html +++ b/httemplate/misc/cust_main_note-import.html @@ -5,7 +5,7 @@ Import a CSV file containing customer notes records.

-File format is CSV, with the following field order: [custnum], last, first, notefield1, notefield2, notefield3... +File format is CSV, with the following field order: [custnum,] last, first, notefield1, notefield2, notefield3...
The optional custnum field is identified by being numeric. Anything after the character sequence #! is ignored. @@ -30,3 +30,10 @@ Anything after the character sequence #! is ignored. <% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + + + diff --git a/httemplate/misc/process/cust_main_note-import.cgi b/httemplate/misc/process/cust_main_note-import.cgi index af06ae95e..efc6224d0 100644 --- a/httemplate/misc/process/cust_main_note-import.cgi +++ b/httemplate/misc/process/cust_main_note-import.cgi @@ -22,6 +22,10 @@ The following items <% $op eq 'Preview' ? 'would be' : 'were' %> imported. (See <%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + my $date = time; my $otaker = $FS::CurrentUser::CurrentUser->username; my $csv = new Text::CSV_XS;