1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix collection permission check in context menu

This commit is contained in:
Shadowghost 2023-05-30 16:20:03 +02:00
parent daf6b44879
commit b3c023f4fa

View file

@ -109,7 +109,7 @@ export function getCommands(options) {
});
}
if (itemHelper.supportsAddingToCollection(item) && options.EnableCollectionManagement) {
if (itemHelper.supportsAddingToCollection(item) && (user.Policy.IsAdministrator || user.Policy.EnableCollectionManagement)) {
commands.push({
name: globalize.translate('AddToCollection'),
id: 'addtocollection',