X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=bca1f160356c1c0411a8df18d09e383dbf5e1e82;hp=4d709e8c27ad1eee0c23b10a6cca64d9ccbd0e67;hb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;hpb=32b5d3a31f112a381f0a15ac5e3a2204242f3405 diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 4d709e8c2..bca1f1603 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -38,7 +38,7 @@ % }
- <% table("#cccccc", 2) %> + <% include('/elements/table.html', '#cccccc' ) %> <% ucfirst($section || 'unclassified') %> configuration options @@ -114,15 +114,16 @@ <%init> + die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); -my ($conf, $title, @config_items, $agentnum); - +my $agentnum = ''; if ($cgi->param('agentnum') =~ /^(\d+)$/) { $agentnum = $1; } +my $title; if ($agentnum) { my $agent = qsearchs('agent', { 'agentnum' => $agentnum } ); die "Agent $agentnum not found!" unless $agent; @@ -132,7 +133,10 @@ if ($agentnum) { $title = 'Global Configuration'; } -$conf = new FS::Conf; -@config_items = grep { $agentnum ? $_->per_agent : 1 } $conf->config_items; - +my $conf = new FS::Conf; + +my @config_items = grep { $agentnum ? $_->per_agent : 1 } + grep { $_->key != ~/^invoice_(html|latex|template)/ } + $conf->config_items; +