diff options
author | Mark Wells <mark@freeside.biz> | 2012-04-04 10:08:37 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-04-04 10:08:37 -0700 |
commit | 583e90e3de4d707996084dc82b794f26063b7fea (patch) | |
tree | e3c319516458ee6e88891e181ded261b6ac58a07 /httemplate/search/elements/search-html.html | |
parent | c2ee6c5c4f274bbf86729cacd2fe011ea71f725d (diff) |
options to limit access to full customer list, #15928
Diffstat (limited to 'httemplate/search/elements/search-html.html')
-rw-r--r-- | httemplate/search/elements/search-html.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/search/elements/search-html.html b/httemplate/search/elements/search-html.html index af0c8fc09..53167c26e 100644 --- a/httemplate/search/elements/search-html.html +++ b/httemplate/search/elements/search-html.html @@ -130,7 +130,9 @@ </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"> @@ -470,6 +472,8 @@ % } <%init> +my $curuser = $FS::CurrentUser::CurrentUser; + my %args = @_; my $type = $args{'type'}; my $header = $args{'header'}; |