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
+?>