X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Finventory_item-import.html;h=423d0d6728bdce4fe84ecbc01042a692ab90e9f0;hb=f49f11d4c3c4ba9480cc5c9acfaa606a5ba73ad1;hp=36362380691222854b16914d33fa15927ddc5d2b;hpb=2d53d2ebdce80d0f0dc7f75ccf506a06c2f852f9;p=freeside.git diff --git a/httemplate/misc/inventory_item-import.html b/httemplate/misc/inventory_item-import.html index 363623806..423d0d672 100644 --- a/httemplate/misc/inventory_item-import.html +++ b/httemplate/misc/inventory_item-import.html @@ -1,11 +1,3 @@ -% -% -%my $classnum = $cgi->param('classnum'); -%$classnum =~ /^(\d+)$/ or errorpage("illegal classnum $classnum"); -%$classnum = $1; -%my $inventory_class = qsearchs('inventory_class', { 'classnum' => $classnum } ); -% -% <% include("/elements/header.html", $inventory_class->classname. 's') %>
@@ -19,3 +11,13 @@ Filename:

<% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +$cgi->param =~ /^(\d+)$/ or errorpage("illegal classnum $classnum"); +my $classnum = $1; +my $inventory_class = qsearchs('inventory_class', { 'classnum' => $classnum } ); + +