[freeside-commits] freeside/httemplate/search inventory_item.html, 1.9, 1.10
Ivan,,,
ivan at wavetail.420.am
Thu May 20 15:48:44 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv27688/httemplate/search
Modified Files:
inventory_item.html
Log Message:
agent virt inventory, RT#7010
Index: inventory_item.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/inventory_item.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -d -r1.9 -r1.10
--- inventory_item.html 1 Mar 2010 21:05:43 -0000 1.9
+++ inventory_item.html 20 May 2010 22:48:42 -0000 1.10
@@ -1,8 +1,11 @@
<% include( 'elements/search.html',
'title' => $title,
- #less lame to use Lingua:: something to pluralize
- 'name' => $inventory_class->classname. 's',
+ 'menubar' => [ 'View inventory classes' =>
+ $p.'browse/inventory_class.html',
+ ],
+
+ 'name' => PL($inventory_class->classname),
'query' => {
'table' => 'inventory_item',
@@ -19,6 +22,10 @@
'count_query' => $count_query,
+ 'agent_virt' => 1,
+ 'agent_null' => 1,
+ 'agent_pos' => 2,
+
'header' => [
'#',
$inventory_class->classname,
@@ -74,8 +81,12 @@
%>
<%init>
+my $curuser = $FS::CurrentUser::CurrentUser;
+
die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+ unless $curuser->access_right('Edit inventory')
+ || $curuser->access_right('Edit global inventory')
+ || $curuser->access_right('Configuration');
my $classnum = $cgi->param('classnum');
$classnum =~ /^(\d+)$/ or errorpage("illegal classnum $classnum");
More information about the freeside-commits
mailing list