CC-4095: Media Library -> Playlist: dj user can delete the playlist owned by

others on some situation.
This commit is contained in:
James 2012-07-10 17:24:57 -04:00
parent f174a2bcf3
commit 24a90700a1
3 changed files with 12 additions and 12 deletions

View file

@ -129,10 +129,10 @@ class LibraryController extends Zend_Controller_Action
}
}
try{
Application_Model_Playlist::DeletePlaylists($playlists, $user->getId());
}catch (PlaylistNoPermissionException $e){
$this->view->message = "You don't have a permission to delete all playlists/files that are selected.";
try {
Application_Model_Playlist::deletePlaylists($playlists, $user->getId());
} catch (PlaylistNoPermissionException $e) {
$this->view->message = "You don't have permission to delete selected playlists/files.";
return;
}