[freeside-commits] freeside/httemplate/search cust_bill.html, 1.19.2.9, 1.19.2.10

Ivan,,, ivan at wavetail.420.am
Sat Mar 29 19:45:13 PDT 2008


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

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	cust_bill.html 
Log Message:
don't show invoice resend and payment posting links if you can't do that anyway

Index: cust_bill.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill.html,v
retrieving revision 1.19.2.9
retrieving revision 1.19.2.10
diff -u -d -r1.19.2.9 -r1.19.2.10
--- cust_bill.html	15 Mar 2008 19:52:30 -0000	1.19.2.9
+++ cust_bill.html	30 Mar 2008 02:45:10 -0000	1.19.2.10
@@ -213,15 +213,18 @@
 
 </SCRIPT>';
 
-my $menubar =  [
-                'Print these invoices' =>
-                  "javascript:confirm_print_process()",
-                'Email these invoices' =>
-                  "javascript:confirm_email_process()",
-              ];
+my $menubar = [];
 
-push @$menubar, 'Fax these invoices' =>
-                 "javascript:confirm_fax_process()"
- if $conf->exists('hylafax');
+if ( $FS::CurrentUser::CurrentUser->access_right('Resend invoices') ) {
+
+  push @$menubar, 'Print these invoices' =>
+                    "javascript:confirm_print_process()",
+                  'Email these invoices' =>
+                    "javascript:confirm_email_process()";
+
+  push @$menubar, 'Fax these invoices' =>
+                    "javascript:confirm_fax_process()"
+    if $conf->exists('hylafax');
+}
 
 </%init>



More information about the freeside-commits mailing list