[freeside-commits] freeside/httemplate/search cust_bill.html, 1.29, 1.30
Ivan,,,
ivan at wavetail.420.am
Sat Mar 29 19:42:55 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv14823/search
Modified Files:
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.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- cust_bill.html 15 Mar 2008 19:52:15 -0000 1.29
+++ cust_bill.html 30 Mar 2008 02:42:52 -0000 1.30
@@ -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