[freeside-commits] freeside/FS/FS/UI Web.pm,1.26.2.8,1.26.2.9

Ivan,,, ivan at wavetail.420.am
Sat Sep 6 13:54:31 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory wavetail.420.am:/tmp/cvs-serv889

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	Web.pm 
Log Message:
don't link to customer service view unless the user has the ACL to view the resulting page

Index: Web.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UI/Web.pm,v
retrieving revision 1.26.2.8
retrieving revision 1.26.2.9
diff -u -d -r1.26.2.8 -r1.26.2.9
--- Web.pm	12 Mar 2008 16:22:10 -0000	1.26.2.8
+++ Web.pm	6 Sep 2008 20:54:25 -0000	1.26.2.9
@@ -138,6 +138,10 @@
 
 sub svc_X_link {
   my ($x, $m, $part_svc, $cust_svc) = @_ or return '';
+
+  return $x
+   unless $FS::CurrentUser::CurrentUser->access_right('View customer services');
+
   my $ahref = svc_url(
     'ahref'    => 1,
     'm'        => $m,
@@ -149,6 +153,7 @@
   "$ahref$x</A>";
 }
 
+#this probably needs an ACL too...
 sub svc_export_links {
   my ($m, $part_svc, $cust_svc) = @_ or return '';
 



More information about the freeside-commits mailing list