CC-2558 : Delete all files from disk, only allow admins to delete.
This commit is contained in:
parent
28b71c61d6
commit
ba0458c442
3 changed files with 4 additions and 1 deletions
|
@ -151,6 +151,7 @@ class LibraryController extends Zend_Controller_Action
|
|||
return;
|
||||
}
|
||||
else {
|
||||
$res = settype($res, "integer");
|
||||
$data = array("filepath" => $file->getFilePath(), "delete" => $res);
|
||||
RabbitMq::SendMessageToMediaMonitor("file_delete", $data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue