summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2012-01-30 20:49:18 +0000
committermark <mark>2012-01-30 20:49:18 +0000
commit3f16e52331cf5d26ae4b9113ab1eb518f0b31b97 (patch)
tree597abd22011bd8c4ad934d763715e03ad53d2889
parentbdd45384ec9688d44f0225aff5a22be53a55ed68 (diff)
limit package report by agent permissions, #16217
-rw-r--r--httemplate/elements/tr-selectmultiple-part_pkg.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/httemplate/elements/tr-selectmultiple-part_pkg.html b/httemplate/elements/tr-selectmultiple-part_pkg.html
index 0b83da02c..ea87eeac0 100644
--- a/httemplate/elements/tr-selectmultiple-part_pkg.html
+++ b/httemplate/elements/tr-selectmultiple-part_pkg.html
@@ -2,10 +2,11 @@
<TD <% $style %>>
<% include( '/elements/select-table.html',
'table' => 'part_pkg',
- 'name_col' => 'pkg',
- 'disable_empty' => 1,
- 'element_etc' => 'multiple',
- %opt,
+ 'name_col' => 'pkg',
+ 'disable_empty' => 1,
+ 'element_etc' => 'multiple',
+ 'extra_sql' => 'WHERE ' . FS::part_pkg->curuser_pkgs_sql,
+ %opt,
)
%>
</TD>