diff options
| author | mark <mark> | 2009-12-14 01:41:11 +0000 |
|---|---|---|
| committer | mark <mark> | 2009-12-14 01:41:11 +0000 |
| commit | 1642d77450f5ecf931bfe94687386583ac3b367d (patch) | |
| tree | 694b69ec944b8eb7ead8f505499192fb261c37dc /httemplate/view/cust_main.cgi | |
| parent | 036dda4f6ffa045e4597ffb61d3e86763759d70e (diff) | |
Add access right to view attachments
Diffstat (limited to 'httemplate/view/cust_main.cgi')
| -rwxr-xr-x | httemplate/view/cust_main.cgi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 314207bb0..6e024132b 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -153,16 +153,18 @@ Comments ) %> % } +% if( $curuser->access_right('View attachments') ) { <% include('cust_main/attachments.html', 'custnum' => $cust_main->custnum ) %> -% if($cgi->param('show_deleted')) { +% if ($cgi->param('show_deleted')) { <A HREF="<% $p.'view/cust_main.cgi?custnum=' . $cust_main->custnum . ($view ? ";show=$view" : '') . '#notes' %>"><I>(Show active attachments)</I></A> -% } +% } % elsif($curuser->access_right('View deleted attachments')) { <A HREF="<% $p.'view/cust_main.cgi?custnum=' . $cust_main->custnum . ($view ? ";show=$view" : '') . ';show_deleted=1#notes' %>"><I>(Show deleted attachments)</I></A> +% } % } <BR> |
