[freeside-commits] freeside/httemplate/view cust_main.cgi, 1.124, 1.124.2.1

Mark Wells mark at wavetail.420.am
Sun Dec 13 17:41:13 PST 2009


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv13183/httemplate/view

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	cust_main.cgi 
Log Message:
Add access right to view attachments

Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main.cgi,v
retrieving revision 1.124
retrieving revision 1.124.2.1
diff -u -d -r1.124 -r1.124.2.1
--- cust_main.cgi	4 Oct 2009 00:08:42 -0000	1.124
+++ cust_main.cgi	14 Dec 2009 01:41:10 -0000	1.124.2.1
@@ -153,16 +153,18 @@
           )
 %>
 % }
+% 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>
 



More information about the freeside-commits mailing list