X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fqueue.html;h=125a6f7f619147e08f837f1d76f0ef0c41d16c98;hb=5e05724a635a22776f1b973f5d7e77989da4e048;hp=675fccd0b213e5d7ab7740605232edce9e6401b3;hpb=61f3f998fe85b1d099100fbe52bc238deebf80f0;p=freeside.git diff --git a/httemplate/search/queue.html b/httemplate/search/queue.html index 675fccd0b..125a6f7f6 100644 --- a/httemplate/search/queue.html +++ b/httemplate/search/queue.html @@ -1,20 +1,5 @@ -% -% -%my $hashref = {}; -% -%my $conf = new FS::Conf; -%my $dangerous = $conf->exists('queue_dangerous_controls'); -% -%my $noactions = 0; -% -%my $count_query = 'SELECT COUNT(*) FROM queue'; # + $hashref -% -%my $areboxes = 0; -% -% <% include( 'elements/search.html', 'title' => 'Job Queue', - 'menubar' => [ 'Main menu' => $p, ], 'name' => 'jobs', 'html_form' => qq!
!, 'query' => { 'table' => 'queue', @@ -134,3 +119,20 @@ ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Job queue'); + +my $hashref = {}; + +my $conf = new FS::Conf; +my $dangerous = $conf->exists('queue_dangerous_controls'); + +my $noactions = 0; + +my $count_query = 'SELECT COUNT(*) FROM queue'; # + $hashref + +my $areboxes = 0; + +