[freeside-commits] freeside/httemplate/search cust_event.html, 1.2, 1.3 timeworked.html, 1.3, 1.4

Ivan,,, ivan at wavetail.420.am
Sun Jan 13 12:57:01 PST 2008


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv6242

Modified Files:
	cust_event.html timeworked.html 
Log Message:
ACLs

Index: timeworked.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/timeworked.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- timeworked.html	21 Sep 2007 02:24:31 -0000	1.3
+++ timeworked.html	13 Jan 2008 20:56:59 -0000	1.4
@@ -1,6 +1,5 @@
 <% include( 'elements/search.html',
                  'title'       => 'Time Worked',
-                 'menubar'     => [ 'Main menu' => $p, ],
                  'name'        => 'time',
 		 'html_form'   => qq!<FORM NAME="timeForm" ACTION="${p}misc/timeworked.html" METHOD="POST">!,
                  'query'       => $query,

Index: cust_event.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_event.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cust_event.html	29 Sep 2007 02:17:48 -0000	1.2
+++ cust_event.html	13 Jan 2008 20:56:59 -0000	1.3
@@ -259,16 +259,21 @@
 
 </SCRIPT>';
 
-my $menubar =  [
-                 'Re-print these events' =>
-                   "javascript:confirm_print_process()",
-                 'Re-email these events' =>
-                   "javascript:confirm_email_process()",
-               ];
+my $menubar = [];
 
-push @$menubar, 'Re-fax these events' =>
-                  "javascript:confirm_fax_process()"
-  if $conf->exists('hylafax');
+if ( $curuser->access_right('Resend invoices') ) {
+
+  push @$menubar, 'Re-print these events' =>
+                    "javascript:confirm_print_process()",
+                  'Re-email these events' =>
+                    "javascript:confirm_email_process()",
+                ;
+
+  push @$menubar, 'Re-fax these events' =>
+                    "javascript:confirm_fax_process()"
+    if $conf->exists('hylafax');
+
+}
 
 my $link_cust = sub {
   my $cust_event = shift;



More information about the freeside-commits mailing list