X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=bca1f160356c1c0411a8df18d09e383dbf5e1e82;hb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;hp=4d709e8c27ad1eee0c23b10a6cca64d9ccbd0e67;hpb=2af3df50fe02e8558ebdf94c426fa3dc6cb246b1;p=freeside.git 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; +