* Bacula® - The Network Backup Solution
* Baculum - Bacula web interface
*
- * Copyright (C) 2013-2014 Marcin Haba
+ * Copyright (C) 2013-2015 Marcin Haba
*
* The main author of Baculum is Marcin Haba.
* The main author of Bacula is Kern Sibbald, with contributions from many
$mediaid = intval($this->Request['id']);
$volume = $this->getModule('volume')->getVolumeById($mediaid);
if(!is_null($volume)) {
- $purge = $this->getModule('bconsole')->bconsoleCommand($this->director, array('purge', 'volume="' . $volume->volumename . '"', 'yes'));
+ $purge = $this->getModule('bconsole')->bconsoleCommand($this->director, array('purge', 'volume="' . $volume->volumename . '"', 'yes'), $this->user);
$this->output = $purge->output;
$this->error = (integer)$purge->exitcode;
} else {