X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_domain.cgi;fp=httemplate%2Fview%2Fsvc_domain.cgi;h=a58d75ed6638d56917b956dedf3b9af7afe7e9ab;hp=8653c4f42302b4bd4d5897a64a12025404ee4b7d;hb=f9938915b0df2609f41c24d761d607595d5d0a34;hpb=d8c81a25cb29cf0ca5d7cdeb8160f79d4fbb0bc6 diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi index 8653c4f42..a58d75ed6 100755 --- a/httemplate/view/svc_domain.cgi +++ b/httemplate/view/svc_domain.cgi @@ -4,14 +4,19 @@ ) : ( "Delete this (unaudited) domain" => "javascript:areyousure('${p}misc/cancel-unaudited.cgi?$svcnum', 'Delete $domain and all records?' )" ) - ), - "Main menu" => $p, + ) )) %> Service #<% $svcnum %>
Service: <% $part_svc->svc %>
Domain name: <% $domain %> -
Catch all email (change): +
Catch all email +% if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain catchall') ) { +
Catch all email(change): +} else { +
Catch all email: +% } + <% $email ? "$email" : "(none)" %>

View whois information.

@@ -50,7 +55,9 @@ Service #<% $svcnum %> <% $type %> <% $domain_record->recdata %> -% unless ( $domain_record->rectype eq 'SOA' ) { +% unless ( $domain_record->rectype eq 'SOA' +% || ! $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice') +% ) { % ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g; (delete) % } @@ -69,42 +76,50 @@ Service #<% $svcnum %> % } +% if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice') ) { +
+
+ + + IN + + + +
+ +

+ or +

+ +
+ +% if ( @records ) { + Delete all records and +% } + Slave from nameserver IP + + + + + + +
+ +% } -
-
- - - IN - - -


or

-
- -% if ( @records ) { - Delete all records and -% } +

-Slave from nameserver IP - - - - - -
-

<% joblisting({'svcnum'=>$svcnum}, 1) %> +<% joblisting({'svcnum'=>$svcnum}, 1) %> <% include('/elements/footer.html') %> <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('View customer services') - || $FS::CurrentUser::CurrentUser->access_right('View customer'); #XXX remove me + unless $FS::CurrentUser::CurrentUser->access_right('View customer services'); my($query) = $cgi->keywords; $query =~ /^(\d+)$/;