From 24533a22a23e211888fcc36a5177c0def5c77de3 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 8 Feb 2009 02:05:48 +0000 Subject: further work on agents editing own packages: allow them to see (but not edit) global packages for their type, RT#1331 --- httemplate/browse/part_pkg.cgi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'httemplate/browse/part_pkg.cgi') diff --git a/httemplate/browse/part_pkg.cgi b/httemplate/browse/part_pkg.cgi index 780f40b9f..cdaa2c92a 100755 --- a/httemplate/browse/part_pkg.cgi +++ b/httemplate/browse/part_pkg.cgi @@ -46,6 +46,7 @@ if ( $cgi->param('active') ) { my $extra_sql = ''; +#false laziness w/elements/select-part_pkg.html my $agentnums = join(',', $curuser->agentnums); unless ( $acl_edit_global ) { @@ -62,6 +63,7 @@ unless ( $acl_edit_global ) { ) "; } +#eofalse my $count_cust_pkg = " SELECT COUNT(*) FROM cust_pkg LEFT JOIN cust_main USING ( custnum ) -- cgit v1.2.1