From 05a2b9c6955bb301a31182169e1d092e6b11a8c9 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 4 Apr 2012 10:10:03 -0700 Subject: options to limit access to full customer list, #15928 --- httemplate/search/elements/search-html.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'httemplate/search/elements/search-html.html') 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 @@ -% unless ( $opt{'disable_download'} || $type eq 'html-print' ) { +% if ( $curuser->access_right('Download report data') +% and !$opt{'disable_download'} +% and $type ne 'html-print' ) { @@ -470,6 +472,8 @@ % } <%init> +my $curuser = $FS::CurrentUser::CurrentUser; + my %args = @_; my $type = $args{'type'}; my $header = $args{'header'}; -- cgit v1.2.1