diff options
author | ivan <ivan> | 2007-01-30 20:59:14 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-30 20:59:14 +0000 |
commit | 15777da47bab33e8f0021e6dd9aa6b434fa9be30 (patch) | |
tree | 83359450ba8dcac02c86bdbd0c85db45a699fc06 /httemplate/browse/agent.cgi | |
parent | 655b4043942c7d361224d283accb4c2a02ef7359 (diff) |
its all about control
Diffstat (limited to 'httemplate/browse/agent.cgi')
-rwxr-xr-x | httemplate/browse/agent.cgi | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi index e9969b02a..063f259de 100755 --- a/httemplate/browse/agent.cgi +++ b/httemplate/browse/agent.cgi @@ -1,17 +1,3 @@ -% -% -% my %search; -% if ( $cgi->param('showdisabled') -% || !dbdef->table('agent')->column('disabled') ) { -% %search = (); -% } else { -% %search = ( 'disabled' => '' ); -% } -% -% my $conf = new FS::Conf; -% -% - <% include("/elements/header.html",'Agent Listing', menubar( 'Main Menu' => $p, 'Agent Types' => $p. 'browse/agent_type.cgi', @@ -370,3 +356,19 @@ Unused </TABLE> </BODY> </HTML> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my %search; +if ( $cgi->param('showdisabled') + || !dbdef->table('agent')->column('disabled') ) { + %search = (); +} else { + %search = ( 'disabled' => '' ); +} + +my $conf = new FS::Conf; + +</%init> |