X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=3ba1e859bbae1b825eb03e93f798c77607ef8270;hb=64aec88c35418b8c630811cdf5afb19b2a1c4299;hp=c3d1804bcf53741e64f0be9980f9c9cb66e83047;hpb=b19897e1db4c110d7d7e8b52800cda5ab58ce9e0;p=freeside.git diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index c3d1804bc..3ba1e859b 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -1,452 +1,375 @@ -<% +<& /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; -