summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_credit.cgi
diff options
context:
space:
mode:
authorivan <ivan>2008-01-13 21:36:09 +0000
committerivan <ivan>2008-01-13 21:36:09 +0000
commit2bee469e81f4963d83b9bf020c817dcb436a6a80 (patch)
treed3509afb4a827279a50241a7f065e0d3481052f8 /httemplate/edit/cust_credit.cgi
parent97e6cec67c0c99ce1b6f0667a09f1e009100189d (diff)
ACLs
Diffstat (limited to 'httemplate/edit/cust_credit.cgi')
-rwxr-xr-xhttemplate/edit/cust_credit.cgi9
1 files changed, 7 insertions, 2 deletions
diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi
index 71793fab4..2af4e32ba 100755
--- a/httemplate/edit/cust_credit.cgi
+++ b/httemplate/edit/cust_credit.cgi
@@ -43,12 +43,16 @@ Credit
</FORM>
</BODY>
</HTML>
-
<%once>
+
my $conf = new FS::Conf;
-</%once>
+</%once>
<%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 ( {
@@ -71,4 +75,5 @@ my $_date = time;
my $otaker = getotaker;
my $p1 = popurl(1);
+
</%init>