default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / edit / allocate.html
index 29c16ae..8d1347d 100644 (file)
                                      '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,
+                'agent_virt'  => 1,
+                'agent_null_right' => 'Broadband global configuration',
           )
 %>
 <%init>
 
+my $curuser = $FS::CurrentUser::CurrentUser;
 die "access denied"
-  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+  unless $curuser->access_right('Broadband configuration')
+      || $curuser->access_right('Broadband global configuration');
 
 </%init>