X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fcust_pay.cgi;h=d6bbf06b023c225cc1da91a1fbc6e3546b46f7c7;hp=0cd408958cf295eca49c22f82181963905b761b2;hb=74e058c8a010ef6feb539248a550d0bb169c1e94;hpb=f099e0dfa8f438a84d8f1bce36f5e5bda60481e5 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);