From 0930d22ffc440f80c1b222b2e750cadbabd9e8f6 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 13 Jan 2008 21:35:54 +0000 Subject: ACLs --- httemplate/edit/cust_credit.cgi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'httemplate/edit/cust_credit.cgi') diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index 2ff09d00b..36109cf5d 100755 --- a/httemplate/edit/cust_credit.cgi +++ b/httemplate/edit/cust_credit.cgi @@ -48,12 +48,16 @@ Credit - <%once> + my $conf = new FS::Conf; - + <%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Post credit'); + my($custnum, $amount, $reason); if ( $cgi->param('error') ) { #$cust_credit = new FS::cust_credit ( { @@ -76,4 +80,5 @@ my $_date = time; my $otaker = getotaker; my $p1 = popurl(1); + -- cgit v1.2.1