From: rsiddall Date: Mon, 15 Jun 2009 21:41:33 +0000 (+0000) Subject: Add a new access right for managing domain registration (registering, X-Git-Tag: root_of_svc_elec_features~1128 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=c7d6edd92281d39e6eb59656a5b79faf8454973d Add a new access right for managing domain registration (registering, transferring, revoking, renewing, etc.). --- diff --git a/FS/FS/AccessRight.pm b/FS/FS/AccessRight.pm index af480dfa7..e29620dc5 100644 --- a/FS/FS/AccessRight.pm +++ b/FS/FS/AccessRight.pm @@ -140,6 +140,7 @@ tie my %rights, 'Tie::IxHash', 'Edit www config', #NEW 'Edit domain catchall', #NEW 'Edit domain nameservice', #NEW + 'Manage domain registration', { rightname=>'View/link unlinked services', global=>1 }, #not agent-virtualizable without more work ], diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi index 1e93b9461..b9a8de752 100755 --- a/httemplate/view/svc_domain.cgi +++ b/httemplate/view/svc_domain.cgi @@ -14,7 +14,7 @@ Service #<% $svcnum %>
Domain name: <% $domain %> % if ($export) {
Status: <% $status %> -% if ( $FS::CurrentUser::CurrentUser->access_right('Change customer service') ) { +% if ( $FS::CurrentUser::CurrentUser->access_right('Manage domain registration') ) { % if ( defined($ops{'register'}) ) { Register at <% $registrar->{'name'} %>  % }