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

disable for none admin

This commit is contained in:
grafixeyehero 2019-08-15 18:37:37 +03:00
parent 0b6369fdcb
commit 40cc2fbd0c

View file

@ -212,17 +212,19 @@ define(['browser', 'appStorage', 'apphost', 'loading', 'connectionManager', 'glo
if (user.Policy.EnableContentDownloading && appHost.supports('filedownload')) {
menuItems.push({
name: Globalize.translate('ButtonDownload'),
id: 'download',
ironIcon: 'file-download'
name: Globalize.translate('ButtonDownload'),
id: 'download',
ironIcon: 'file-download'
});
}
menuItems.push({
name: globalize.translate('GroupVersions'),
id: 'groupvideos',
ironIcon: 'call-merge'
});
if (user.Policy.IsAdministrator) {
menuItems.push({
name: globalize.translate('GroupVersions'),
id: 'groupvideos',
ironIcon: 'call-merge'
});
}
menuItems.push({
name: globalize.translate('MarkPlayed'),