summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2012-01-30 20:54:14 +0000
committermark <mark>2012-01-30 20:54:14 +0000
commitfea922a1920136546042dd3ccfac141d2a1c0fc4 (patch)
tree932b533a79b5fbd79d208ac4bf16b4825b6eafcc
parentfdc8152e9fea3d1a81ca4f7604379a9eb17bb494 (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>