X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=8de73c513c1f76c585e9fe3b7707feaff32c4bd9;hb=e8740b7c8f772508c0a393d3c0de2b3c8531280d;hp=45cb69fc2d30c1f033c2b86e594e01377a106c2e;hpb=e47e9758f480c664bfc3917d798cd69c7d354999;p=freeside.git diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 45cb69fc2..56c396271 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -1,444 +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; -