diff --git a/app/views/job_task/show.php b/app/views/job_task/show.php index 960de2f..940aba5 100755 --- a/app/views/job_task/show.php +++ b/app/views/job_task/show.php @@ -11,7 +11,9 @@ contentFor('subnavbar', function(){ ?>
  • linkTo($this->t(".nav.list"), ['action' => "index"]) ?>
  • - job_task->status == "error") : ?> + is_admin() && $this->job_task->status == "error") : ?>
  • linkTo($this->t(".nav.restart"), ["#restart", 'id' => $this->job_task->id]) ?>
  • + is_admin() && $this->job_task->status != 'pending') : ?> +
  • linkTo('Force restart', ["#restart", 'id' => $this->job_task->id]) ?>