]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix jobs count in job list
authorMarcin Haba <marcin.haba@bacula.pl>
Sun, 13 Dec 2015 11:21:08 +0000 (12:21 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Sun, 13 Dec 2015 11:21:08 +0000 (12:21 +0100)
gui/baculum/protected/Pages/API/Jobs.php

index 4b7ea8d3089b29bc328b075407b92c5bd4811caf..bc8b45ea0955423cc6fa3f23c6dccae370f34201 100644 (file)
@@ -24,15 +24,8 @@ class Jobs extends BaculumAPI {
        public function get() {
                $limit = intval($this->Request['limit']);
                $jobs = $this->getModule('job')->getJobs($limit);
-               $allowedJobs = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.jobs'), $this->user)->output;
-               $jobsOutput = array();
-               foreach($jobs as $job) {
-                       if(in_array($job->name, $allowedJobs)) {
-                               $jobsOutput[] = $job;
-                       }
-               }
-               $this->output = $jobsOutput;
+               $this->output = $jobs;
                $this->error = JobError::ERROR_NO_ERRORS;
        }
 }
-?>
\ No newline at end of file
+?>