summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorivan <ivan>2009-02-08 02:05:48 +0000
committerivan <ivan>2009-02-08 02:05:48 +0000
commit24533a22a23e211888fcc36a5177c0def5c77de3 (patch)
tree09887e29cf74dc4e50ab03e23514acc0d69e59b2 /httemplate/browse
parent8b72ad2a4d67f46e4bda36179e992d82d069689f (diff)
further work on agents editing own packages: allow them to see (but not edit) global packages for their type, RT#1331
Diffstat (limited to 'httemplate/browse')
-rwxr-xr-xhttemplate/browse/part_pkg.cgi2
1 files changed, 2 insertions, 0 deletions
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 )