diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2012-04-04 15:41:26 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2012-04-04 15:41:26 -0700 |
| commit | 685f35c0d8d08ea7bbf2ac7cf2db19cdc79fcccf (patch) | |
| tree | 889923eeb7908d7c8121accb2fea8d89ea4fb31d /httemplate/search/elements/search-html.html | |
| parent | 3075e4648ca64d58c3458195ddda34235b4aae59 (diff) | |
| parent | 341ee4847da0f09898b07f35e5b3d43d3b687805 (diff) | |
Merge branch 'FREESIDE_2_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_2_3_BRANCH
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'}; |
