summaryrefslogtreecommitdiff
path: root/FS/FS/queue.pm
diff options
context:
space:
mode:
authorivan <ivan>2002-03-27 07:08:08 +0000
committerivan <ivan>2002-03-27 07:08:08 +0000
commitab4e2900dd300d5f6e55227cdabb3cf2bf5db7a7 (patch)
treec5229dfa4c3609b3e9fcd11217c02cb97ed11aa3 /FS/FS/queue.pm
parent8ea299358401bea12bef7c2dd1841cef3cf45c20 (diff)
don't show queue arguments (passwords!) on svc_* screens
(unless queue_dangerous_options!)
Diffstat (limited to 'FS/FS/queue.pm')
-rw-r--r--FS/FS/queue.pm15
1 files changed, 12 insertions, 3 deletions
diff --git a/FS/FS/queue.pm b/FS/FS/queue.pm
index e5369cf..4b880a2 100644
--- a/FS/FS/queue.pm
+++ b/FS/FS/queue.pm
@@ -251,17 +251,26 @@ END
$html .= '<TH>Account</TH>' unless $hashref->{svcnum};
$html .= '</TR>';
+ my $dangerous = $conf->exists('queue_dangerous_controls');
+
my $p = FS::CGI::popurl(2);
foreach my $queue ( sort {
$a->getfield('jobnum') <=> $b->getfield('jobnum')
} @queue ) {
my $queue_hashref = $queue->hashref;
my $jobnum = $queue->jobnum;
- my $args = join(' ', $queue->args);
+
+ my $args;
+ if ( $dangerous || $queue->job !~ /^FS::part_export::/ || !$noactions ) {
+ $args = join(' ', $queue->args);
+ } else {
+ $args = '';
+ }
+
my $date = time2str( "%a %b %e %T %Y", $queue->_date );
my $status = $queue->status;
$status .= ': '. $queue->statustext if $queue->statustext;
- if ( $conf->exists('queue_dangerous_controls')
+ if ( $dangerous
|| ( ! $noactions && $status =~ /^failed/ || $status =~ /^locked/ ) ) {
$status .=
qq! (&nbsp;<A HREF="$p/misc/queue.cgi?jobnum=$jobnum&action=new">retry</A>&nbsp;|!.
@@ -305,7 +314,7 @@ END
=head1 VERSION
-$Id: queue.pm,v 1.9 2002-03-24 14:29:00 ivan Exp $
+$Id: queue.pm,v 1.10 2002-03-27 07:08:08 ivan Exp $
=head1 BUGS