CC-2558 : Delete all files from disk, only allow admins to delete
This commit is contained in:
parent
ba0458c442
commit
5a9bf18ccc
@ -319,7 +319,12 @@ class StoredFile {
|
||||
Playlist::DeleteFileFromAllPlaylists($this->getId());
|
||||
$this->_file->delete();
|
||||
|
||||
return $res;
|
||||
if (isset($res)) {
|
||||
return $res;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user