summaryrefslogtreecommitdiff
path: root/httemplate/edit/allocate.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/allocate.html')
-rw-r--r--httemplate/edit/allocate.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/edit/allocate.html b/httemplate/edit/allocate.html
index 29c16ae6a..0f05fcc7d 100644
--- a/httemplate/edit/allocate.html
+++ b/httemplate/edit/allocate.html
@@ -12,15 +12,22 @@
'table' => 'router',
'name_col' => 'routername',
'disable_empty' => 1,
+ 'agent_virt' => 1,
+ 'agent_null_right' =>
+ 'Engineering global configuration',
},
],
'post_url' => "process/addr_block/allocate.cgi",
'popup' => 1,
+ 'agent_virt' => 1,
+ 'agent_null_right' => 'Engineering global configuration',
)
%>
<%init>
+my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+ unless $curuser->access_right('Engineering configuration')
+ || $curuser->access_right('Engineering global configuration');
</%init>