mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge pull request #410 from grafixeyehero/groupversion
Disable Group versions for non admin
This commit is contained in:
commit
cfb67bb5d1
@ -212,17 +212,19 @@ define(['browser', 'appStorage', 'apphost', 'loading', 'connectionManager', 'glo
|
|||||||
|
|
||||||
if (user.Policy.EnableContentDownloading && appHost.supports('filedownload')) {
|
if (user.Policy.EnableContentDownloading && appHost.supports('filedownload')) {
|
||||||
menuItems.push({
|
menuItems.push({
|
||||||
name: Globalize.translate('ButtonDownload'),
|
name: Globalize.translate('ButtonDownload'),
|
||||||
id: 'download',
|
id: 'download',
|
||||||
ironIcon: 'file-download'
|
ironIcon: 'file-download'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
menuItems.push({
|
if (user.Policy.IsAdministrator) {
|
||||||
name: globalize.translate('GroupVersions'),
|
menuItems.push({
|
||||||
id: 'groupvideos',
|
name: globalize.translate('GroupVersions'),
|
||||||
ironIcon: 'call-merge'
|
id: 'groupvideos',
|
||||||
});
|
ironIcon: 'call-merge'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
menuItems.push({
|
menuItems.push({
|
||||||
name: globalize.translate('MarkPlayed'),
|
name: globalize.translate('MarkPlayed'),
|
||||||
|
Loading…
Reference in New Issue
Block a user