mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add permission check for removing playlist item
This commit is contained in:
parent
3e62933461
commit
6c226ba59f
2 changed files with 57 additions and 28 deletions
|
@ -280,11 +280,11 @@ export function getCommands(options) {
|
|||
});
|
||||
}
|
||||
|
||||
if (item.PlaylistItemId && options.playlistId) {
|
||||
if (item.PlaylistItemId && options.playlistId && options.canEditPlaylist) {
|
||||
commands.push({
|
||||
name: globalize.translate('RemoveFromPlaylist'),
|
||||
id: 'removefromplaylist',
|
||||
icon: 'remove'
|
||||
icon: 'playlist_remove'
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -292,7 +292,7 @@ export function getCommands(options) {
|
|||
commands.push({
|
||||
name: globalize.translate('RemoveFromCollection'),
|
||||
id: 'removefromcollection',
|
||||
icon: 'remove'
|
||||
icon: 'playlist_remove'
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -696,6 +696,6 @@ export function show(options) {
|
|||
}
|
||||
|
||||
export default {
|
||||
getCommands: getCommands,
|
||||
show: show
|
||||
getCommands,
|
||||
show
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue