CC-4095: Media Library -> Playlist: dj user can delete the playlist owned by
others on some situation.
This commit is contained in:
parent
f174a2bcf3
commit
24a90700a1
3 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue