projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58275a5
)
resolve minor ACL glitch linking to payments
author
ivan
<ivan>
Thu, 27 Mar 2008 20:20:04 +0000
(20:20 +0000)
committer
ivan
<ivan>
Thu, 27 Mar 2008 20:20:04 +0000
(20:20 +0000)
httemplate/search/cust_pay.cgi
patch
|
blob
|
history
diff --git
a/httemplate/search/cust_pay.cgi
b/httemplate/search/cust_pay.cgi
index
e5465ae
..
80a611d
100755
(executable)
--- a/
httemplate/search/cust_pay.cgi
+++ b/
httemplate/search/cust_pay.cgi
@@
-235,7
+235,10
@@
if ( $cgi->param('magic') ) {
}
-my $link = [ "${p}view/cust_pay.html?paynum=", 'paynum' ];
+my $link = '';
+$link = [ "${p}view/cust_pay.html?paynum=", 'paynum' ]
+ if $FS::CurrentUser::CurrentUser->access_right('View invoices'); #XXX for now
+ #later# if $FS::CurrentUser::CurrentUser->access_right('View customer payments');
my $cust_link = sub {
my $cust_pay = shift;