X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fdomain_record.cgi;h=2e427e4fb4ff475e47af72209a1c77d1d99097e1;hb=0930d22ffc440f80c1b222b2e750cadbabd9e8f6;hp=b8c3f62a12c7794b67f7304f15e1bc6a6cae4b63;hpb=4920ad2671d712afe23d731e25bc5b53955397b7;p=freeside.git diff --git a/httemplate/edit/process/domain_record.cgi b/httemplate/edit/process/domain_record.cgi index b8c3f62a1..2e427e4fb 100755 --- a/httemplate/edit/process/domain_record.cgi +++ b/httemplate/edit/process/domain_record.cgi @@ -1,4 +1,13 @@ -<% +%if ( $error ) { +% errorpage($error); +%} else { +% my $svcnum = $new->svcnum; +<% $cgi->redirect(popurl(3). "view/svc_domain.cgi?$svcnum") %> +%} +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice'); my $recnum = $cgi->param('recnum'); @@ -18,17 +27,4 @@ if ( $recnum ) { $recnum=$new->getfield('recnum'); } -if ( $error ) { -# $cgi->param('error', $error); -# print $cgi->redirect(popurl(2). "agent.cgi?". $cgi->query_string ); - #no edit screen to send them back to -%> - -<% - eidiot($error); -} else { - my $svcnum = $new->svcnum; - print $cgi->redirect(popurl(3). "view/svc_domain.cgi?$svcnum"); -} - -%> +