[freeside-commits] freeside/httemplate/misc custom_link_proxy.cgi, 1.1.6.1, 1.1.6.2
Ivan,,,
ivan at wavetail.420.am
Tue Dec 6 20:49:27 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv4035/httemplate/misc
Modified Files:
Tag: FREESIDE_2_3_BRANCH
custom_link_proxy.cgi
Log Message:
add usernum to cust_main-custom_link, RT#15475
Index: custom_link_proxy.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/custom_link_proxy.cgi,v
retrieving revision 1.1.6.1
retrieving revision 1.1.6.2
diff -u -w -d -r1.1.6.1 -r1.1.6.2
--- custom_link_proxy.cgi 25 Oct 2011 01:15:14 -0000 1.1.6.1
+++ custom_link_proxy.cgi 7 Dec 2011 04:49:25 -0000 1.1.6.2
@@ -14,15 +14,16 @@
my $url = $conf->config('cust_main-custom_link');
my $agentnum = $cust_main->agentnum;
+my $curuser = $FS::CurrentUser::CurrentUser;
+my $usernum = $curuser->usernum;
# like eval(qq("$url")) but with fewer things that can go wrong
# and if $custnum isn't mentioned, assume it goes at the end
$url =~ s/\$custnum/$custnum/ or $url .= $custnum;
$url =~ s/\$agentnum/$agentnum/;
+$url =~ s/\$usernum/$usernum/;
#warn $url;
-my $curuser = $FS::CurrentUser::CurrentUser;
-
die "access denied"
unless $curuser->access_right('View customer');
More information about the freeside-commits
mailing list