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,7 +319,12 @@ class StoredFile {
|
||||||
Playlist::DeleteFileFromAllPlaylists($this->getId());
|
Playlist::DeleteFileFromAllPlaylists($this->getId());
|
||||||
$this->_file->delete();
|
$this->_file->delete();
|
||||||
|
|
||||||
return $res;
|
if (isset($res)) {
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue