From c7d6edd92281d39e6eb59656a5b79faf8454973d Mon Sep 17 00:00:00 2001 From: rsiddall Date: Mon, 15 Jun 2009 21:41:33 +0000 Subject: [PATCH] Add a new access right for managing domain registration (registering, transferring, revoking, renewing, etc.). --- FS/FS/AccessRight.pm | 1 + httemplate/view/svc_domain.cgi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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'} %>  % } -- 2.11.0