Merge pull request #410 from grafixeyehero/groupversion

Disable Group versions for non admin
This commit is contained in:
Anthony Lavado 2019-08-15 15:25:09 -04:00 committed by GitHub
commit cfb67bb5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'),