CC-2558 : Delete all files from disk, only allow admins to delete

This commit is contained in:
Naomi Aro 2011-07-19 11:50:49 +02:00
parent ba0458c442
commit 5a9bf18ccc

View file

@ -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.