X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcancel_cust.html;fp=httemplate%2Fmisc%2Fcancel_cust.html;h=bb4e1904a0e95776084237578374eb41b262f5ef;hb=f49f11d4c3c4ba9480cc5c9acfaa606a5ba73ad1;hp=634000d706aed4b02e369a9d6699fecb27971a2d;hpb=2d53d2ebdce80d0f0dc7f75ccf506a06c2f852f9;p=freeside.git diff --git a/httemplate/misc/cancel_cust.html b/httemplate/misc/cancel_cust.html index 634000d70..bb4e1904a 100644 --- a/httemplate/misc/cancel_cust.html +++ b/httemplate/misc/cancel_cust.html @@ -50,6 +50,8 @@ if ( $cgi->param('error') ) { $curuser = $FS::CurrentUser::CurrentUser; +die "access denied" unless $curuser->access_right('Cancel customer'); + $cust_main = qsearchs( { 'table' => 'cust_main', 'hashref' => { 'custnum' => $custnum },