X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=92abb7be85ae2a96efe0653570aa86ae4999124a;hb=aedb243bc1dae1e5f3903d47d5c2928eda1a5d45;hp=855fbfcf125f4492a9030d2545e0d677ac86cd5e;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index 855fbfcf1..92abb7be8 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -4,10 +4,7 @@ <% include("/elements/header.html", $title, '') %> % } -% if ( $cgi->param('error') ) { - Error: <% $cgi->param('error') %> -

-% } +<% include('/elements/error.html') %> @@ -89,6 +86,7 @@ Payment <%once> + my $conf = new FS::Conf; my %payby = ( @@ -99,9 +97,13 @@ my %payby = ( ); my $money_char = $conf->config('money_char') || '$'; - + <%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Post payment'); + my($link, $linknum, $paid, $payby, $payinfo, $_date); if ( $cgi->param('error') ) { $link = $cgi->param('link');