diff options
author | ivan <ivan> | 2010-11-04 17:09:31 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-11-04 17:09:31 +0000 |
commit | 525583dc4bf34e3668871868b3374f590e4928a4 (patch) | |
tree | 548a1564f3dbec847e42fde9cc0d15ca389d05d7 /httemplate/edit | |
parent | bd35baff8b7b5dcdd44d14a1139ef4d48009274c (diff) |
fix fallout from payment ACL changes, RT#10476
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/process/cust_pay.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/process/cust_pay.cgi b/httemplate/edit/process/cust_pay.cgi index 0cd408958..d6bbf06b0 100755 --- 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'); -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); |