[freeside-commits] freeside/httemplate/view/cust_main attachments.html, 1.2.2.1, 1.2.2.2

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


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

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

Index: attachments.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/attachments.html,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -d -r1.2.2.1 -r1.2.2.2
--- attachments.html	24 Nov 2009 01:11:22 -0000	1.2.2.1
+++ attachments.html	14 Dec 2009 01:41:11 -0000	1.2.2.2
@@ -109,7 +109,7 @@
 
 my $conf = new FS::Conf;
 my $curuser = $FS::CurrentUser::CurrentUser;
-
+die "access denied" if !$curuser->access_right('View attachments');
 my(%opt) = @_;
 
 my $custnum = $opt{'custnum'};



More information about the freeside-commits mailing list