CC-4655: DJ's can delete files that they do not own
-fixed
This commit is contained in:
parent
fc613aa597
commit
2507e0f8a4
2 changed files with 10 additions and 0 deletions
|
@ -319,6 +319,8 @@ class LibraryController extends Zend_Controller_Action
|
|||
if (isset($file)) {
|
||||
try {
|
||||
$res = $file->delete(true);
|
||||
} catch (FileNoPermissionException $e) {
|
||||
$this->view->message = "You don't have permission to delete selected items.";
|
||||
} catch (Exception $e) {
|
||||
//could throw a scheduled in future exception.
|
||||
$message = "Could not delete some scheduled files.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue