From: ivan Date: Sun, 13 Jan 2008 20:38:37 +0000 (+0000) Subject: ACLs X-Git-Tag: freeside_1_7_3rc1~147 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=bd152637da56be7155765363cc29ae0126813fed;p=freeside.git ACLs --- diff --git a/httemplate/browse/access_group.html b/httemplate/browse/access_group.html index ca162a094..2d5047c1d 100644 --- a/httemplate/browse/access_group.html +++ b/httemplate/browse/access_group.html @@ -1,8 +1,6 @@ <% include( 'elements/browse.html', 'title' => 'Internal Access Groups', - 'menubar' => [ # 'Main menu' => $p, - 'Internal users' => $p.'browse/access_user.html', - ], + 'menubar' => [ 'Internal users' => $p.'browse/access_user.html', ], 'html_init' => $html_init, 'name' => 'internal access groups', 'query' => { 'table' => 'access_group', diff --git a/httemplate/browse/access_user.html b/httemplate/browse/access_user.html index 397e64a5d..ec47f1aa7 100644 --- a/httemplate/browse/access_user.html +++ b/httemplate/browse/access_user.html @@ -1,11 +1,9 @@ <% include( 'elements/browse.html', 'title' => 'Internal Users', - 'menubar' => [ #'Main menu' => $p, - 'Internal access groups' => $p.'browse/access_group.html', - ], + 'menubar' => [ 'Internal access groups' => $p.'browse/access_group.html', ], 'html_init' => $html_init, - 'html_posttotal' => $posttotal, 'name' => 'internal users', + 'html_posttotal' => $posttotal, 'query' => { 'table' => 'access_user', 'hashref' => \%search, 'extra_sql' => 'ORDER BY last, first', diff --git a/httemplate/browse/addr_block.cgi b/httemplate/browse/addr_block.cgi index 8bbc5f350..eac7cf7b6 100644 --- a/httemplate/browse/addr_block.cgi +++ b/httemplate/browse/addr_block.cgi @@ -1,12 +1,4 @@ -<% include("/elements/header.html",'Address Blocks', menubar('Main Menu' => $p)) %> - -%use NetAddr::IP; -% -%my @addr_block = qsearch('addr_block', {}); -%my @router = qsearch('router', {}); -%my $block; -%my $p2 = popurl(2); -%my $path = $p2 . "edit/process/addr_block"; +<% include('/elements/header.html', 'Address Blocks') %> <% include('/elements/error.html') %> @@ -71,9 +63,18 @@ - - + +<% include('/elements/footer.html') %> + <%init> + die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my @addr_block = qsearch('addr_block', {}); +my @router = qsearch('router', {}); +my $block; +my $p2 = popurl(2); +my $path = $p2 . "edit/process/addr_block"; + diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi index 35ad86343..5bb9f918a 100755 --- a/httemplate/browse/agent.cgi +++ b/httemplate/browse/agent.cgi @@ -1,5 +1,4 @@ <% include("/elements/header.html",'Agent Listing', menubar( - 'Main Menu' => $p, 'Agent Types' => $p. 'browse/agent_type.cgi', # 'Add new agent' => '../edit/agent.cgi' )) %> diff --git a/httemplate/browse/agent_type.cgi b/httemplate/browse/agent_type.cgi index b4e4fcf99..d64ff186a 100755 --- a/httemplate/browse/agent_type.cgi +++ b/httemplate/browse/agent_type.cgi @@ -1,8 +1,6 @@ <% include( 'elements/browse.html', 'title' => 'Agent Types', - 'menubar' => [ #'Main menu' => $p, - 'Agents' =>"${p}browse/agent.cgi", - ], + 'menubar' => [ 'Agents' =>"${p}browse/agent.cgi", ], 'html_init' => $html_init, 'name' => 'agent types', 'query' => { 'table' => 'agent_type', diff --git a/httemplate/browse/nas.cgi b/httemplate/browse/nas.cgi index 022c65ea7..b5e0ef8b7 100755 --- a/httemplate/browse/nas.cgi +++ b/httemplate/browse/nas.cgi @@ -1,9 +1,4 @@ - -% -% -%print header('NAS ports', menubar( -% 'Main Menu' => $p, -%)); +%print header('NAS ports'); % %my $now = time; % @@ -79,3 +74,9 @@ %# NAS + +#this hasn't been used in ages, and isn't linked from anywhere... +die 'NAS browse not currently active'; + + diff --git a/httemplate/browse/part_pkg.cgi b/httemplate/browse/part_pkg.cgi index 5acf17ef2..ca23c41e6 100755 --- a/httemplate/browse/part_pkg.cgi +++ b/httemplate/browse/part_pkg.cgi @@ -1,9 +1,8 @@ <% include( 'elements/browse.html', 'title' => 'Package Definitions', - 'menubar' => [ 'Main Menu' => $p ], 'html_init' => $html_init, - 'html_posttotal' => $posttotal, 'name' => 'package definitions', + 'html_posttotal' => $posttotal, 'query' => { 'select' => $select, 'table' => 'part_pkg', 'hashref' => \%search, diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi index 95573a0d7..f1b283638 100755 --- a/httemplate/browse/part_svc.cgi +++ b/httemplate/browse/part_svc.cgi @@ -1,4 +1,4 @@ -<% include("/elements/header.html",'Service Definition Listing', menubar( 'Main Menu' => $p) ) %> +<% include('/elements/header.html', 'Service Definition Listing') %>