[freeside-commits] freeside/FS/FS/UI Web.pm,1.35,1.36
Ivan,,,
ivan at wavetail.420.am
Sat Sep 6 13:54:28 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory wavetail.420.am:/tmp/cvs-serv883
Modified Files:
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.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- Web.pm 18 Jul 2008 22:29:09 -0000 1.35
+++ Web.pm 6 Sep 2008 20:54:24 -0000 1.36
@@ -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