projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bd35baf
)
fix fallout from payment ACL changes, RT#10476
author
ivan
<ivan>
Thu, 4 Nov 2010 17:09:31 +0000
(17:09 +0000)
committer
ivan
<ivan>
Thu, 4 Nov 2010 17:09:31 +0000
(17:09 +0000)
httemplate/edit/process/cust_pay.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/cust_pay.cgi
b/httemplate/edit/process/cust_pay.cgi
index
0cd4089
..
d6bbf06
100755
(executable)
--- a/
httemplate/edit/process/cust_pay.cgi
+++ b/
httemplate/edit/process/cust_pay.cgi
@@
-50,8
+50,8
@@
my $new = new FS::cust_pay ( {
} );
my @rights = ('Post payment');
} );
my @rights = ('Post payment');
-push @rights, 'Post check payment' if $
cust_pay
->payby eq 'BILL';
-push @rights, 'Post cash payment' if $
cust_pay
->payby eq 'CASH';
+push @rights, 'Post check payment' if $
new
->payby eq 'BILL';
+push @rights, 'Post cash payment' if $
new
->payby eq 'CASH';
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right(\@rights);
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right(\@rights);