X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=3cc55f348bc4e6fd792112dda7bed18b8082dbe9;hb=c15c4b8b1afa91049915f77503487e663554938b;hp=c3d1804bcf53741e64f0be9980f9c9cb66e83047;hpb=b19897e1db4c110d7d7e8b52800cda5ab58ce9e0;p=freeside.git diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index c3d1804bc..3cc55f348 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -1,452 +1,381 @@ -<% +<& /elements/header.html, $title, &> - #for misplaced logic below - #use FS::part_pkg; +<& /elements/error.html &> - #for false laziness below (now more properly lazy) - #use FS::svc_acct_pop; +
-<% } else { %> +<& /elements/footer.html &> - +<%init> -<% } %> +my $curuser = $FS::CurrentUser::CurrentUser; - +#probably redundant given the checks below... +die "access denied" + unless $curuser->access_right('New customer') + || $curuser->access_right('Edit customer'); - +my $conf = new FS::Conf; -