projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
options to limit access to full customer list, #15928
[freeside.git]
/
httemplate
/
search
/
elements
/
search-html.html
diff --git
a/httemplate/search/elements/search-html.html
b/httemplate/search/elements/search-html.html
index
af0c8fc
..
53167c2
100644
(file)
--- a/
httemplate/search/elements/search-html.html
+++ b/
httemplate/search/elements/search-html.html
@@
-130,7
+130,9
@@
</TD>
</TD>
-% unless ( $opt{'disable_download'} || $type eq 'html-print' ) {
+% if ( $curuser->access_right('Download report data')
+% and !$opt{'disable_download'}
+% and $type ne 'html-print' ) {
<TD ALIGN="right">
<TD ALIGN="right">
@@
-470,6
+472,8
@@
% }
<%init>
% }
<%init>
+my $curuser = $FS::CurrentUser::CurrentUser;
+
my %args = @_;
my $type = $args{'type'};
my $header = $args{'header'};
my %args = @_;
my $type = $args{'type'};
my $header = $args{'header'};