projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add test for prorate-deferred behavior
[freeside.git]
/
httemplate
/
edit
/
allocate.html
diff --git
a/httemplate/edit/allocate.html
b/httemplate/edit/allocate.html
index
29c16ae
..
8d1347d
100644
(file)
--- a/
httemplate/edit/allocate.html
+++ b/
httemplate/edit/allocate.html
@@
-12,15
+12,22
@@
'table' => 'router',
'name_col' => 'routername',
'disable_empty' => 1,
'table' => 'router',
'name_col' => 'routername',
'disable_empty' => 1,
+ 'agent_virt' => 1,
+ 'agent_null_right' =>
+ 'Broadband global configuration',
},
],
'post_url' => "process/addr_block/allocate.cgi",
'popup' => 1,
},
],
'post_url' => "process/addr_block/allocate.cgi",
'popup' => 1,
+ 'agent_virt' => 1,
+ 'agent_null_right' => 'Broadband global configuration',
)
%>
<%init>
)
%>
<%init>
+my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+ unless $curuser->access_right('Broadband configuration')
+ || $curuser->access_right('Broadband global configuration');
</%init>
</%init>