CC-2558 : Delete all files from disk, only allow admins to delete
This commit is contained in:
parent
ba0458c442
commit
5a9bf18ccc
1 changed files with 6 additions and 1 deletions
|
@ -319,8 +319,13 @@ class StoredFile {
|
|||
Playlist::DeleteFileFromAllPlaylists($this->getId());
|
||||
$this->_file->delete();
|
||||
|
||||
if (isset($res)) {
|
||||
return $res;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete media file from filesystem.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue