X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_main.cgi;h=e87fe36d7985cc3e7a816176c73ec600685770f7;hb=590603ecaea3184f64530755a76626be8205da49;hp=e15447ae015aa5a2a1672c4fb91a866848797f2d;hpb=14e3560b43ca8a747f4210bd784a0315daeb5e9e;p=freeside.git diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index e15447ae0..e87fe36d7 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -1,3 +1,6 @@ +%die "access denied" +% unless $FS::CurrentUser::CurrentUser->access_right('List customers'); +% %my $conf = new FS::Conf; %my $maxrecords = $conf->config('maxsearchrecordsperpage'); % @@ -82,6 +85,8 @@ % } % % if ( $cgi->param('otaker_on') ) { +% die "access denied" +% unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); % $cgi->param('otaker') =~ /^(\w{1,32})$/ or eidiot "Illegal otaker\n"; % $search{otaker} = $1; % } elsif ( $cgi->param('agentnum_on') ) { @@ -305,7 +310,8 @@ % % print "

". $pager. include('/elements/table-grid.html'). < -% +% # +% Status % (bill) name % company %END @@ -369,10 +375,12 @@ % ? qq!$company! % : ' '; % - +% my $status = $cust_main->status; +% my $statuscol = $FS::cust_main::statuscolor{$status}; - ><% $custnum %> + ><% $custnum %> + >><% ucfirst($status) %> ><% "$last, $first" %> ><% $pcompany %> %