X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Finventory_class.html;h=8ce131ac293604d7e55bad8beb74aad666845dba;hp=6d9424e14e678cd6cb9e6905e1a9c897b04407cd;hb=15777da47bab33e8f0021e6dd9aa6b434fa9be30;hpb=655b4043942c7d361224d283accb4c2a02ef7359 diff --git a/httemplate/browse/inventory_class.html b/httemplate/browse/inventory_class.html index 6d9424e14..8ce131ac2 100644 --- a/httemplate/browse/inventory_class.html +++ b/httemplate/browse/inventory_class.html @@ -1,27 +1,3 @@ -% -% -%tie my %labels, 'Tie::IxHash', -% 'num_avail' => 'Available', # (upload batch)', -% 'num_used' => 'In use', #'Used', #'Allocated', -% 'num_total' => 'Total', -%; -% -%my %link = ( -% 'num_avail' => ';avail=1', -% 'num_used' => ';used=1', -% 'num_total' => '', -%); -% -%my %inv_action_link = ( -% 'num_avail' => [ 'upload batch', -% $p.'misc/inventory_item-import.html?classnum=', -% 'classnum' -% ], -%); -% -%my $link = [ "${p}edit/inventory_class.html?", 'classnum' ]; -% -% <% include( 'elements/browse.html', 'title' => 'Inventory Classes', 'name' => 'inventory classes', @@ -88,3 +64,30 @@ ], ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +tie my %labels, 'Tie::IxHash', + 'num_avail' => 'Available', # (upload batch)', + 'num_used' => 'In use', #'Used', #'Allocated', + 'num_total' => 'Total', +; + +my %link = ( + 'num_avail' => ';avail=1', + 'num_used' => ';used=1', + 'num_total' => '', +); + +my %inv_action_link = ( + 'num_avail' => [ 'upload batch', + $p.'misc/inventory_item-import.html?classnum=', + 'classnum' + ], +); + +my $link = [ "${p}edit/inventory_class.html?", 'classnum' ]; + +