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

@ -98,7 +98,7 @@ class PlaylistController extends Zend_Controller_Action
}
private function playlistNoPermission(){
$this->view->error = "You don't have permission to deleted playlist(s)";
$this->view->error = "You don't have permission to delete selected playlist(s).";
}
private function playlistUnknownError($e)
@ -217,10 +217,10 @@ class PlaylistController extends Zend_Controller_Action
$pl = new Application_Model_Playlist($this->pl_sess->id);
}
Application_Model_Playlist::DeletePlaylists($ids, $userInfo->id);
Application_Model_Playlist::deletePlaylists($ids, $userInfo->id);
$this->createFullResponse($pl);
}
catch (PlaylistNoPermissionException $e){
catch (PlaylistNoPermissionException $e) {
$this->playlistNoPermission();
}
catch (PlaylistNotFoundException $e) {