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

Merge pull request #1331 from MediaBrowser/master

require admin for edit buttons
This commit is contained in:
Luke 2015-12-18 12:38:32 -05:00
commit 4c55603a23

View file

@ -268,7 +268,8 @@
}); });
} }
if (user.Policy.IsAdministrator && commands.indexOf('edit') != -1) { if (user.Policy.IsAdministrator) {
if (commands.indexOf('edit') != -1) {
items.push({ items.push({
name: Globalize.translate('ButtonEdit'), name: Globalize.translate('ButtonEdit'),
id: 'edit', id: 'edit',
@ -291,6 +292,7 @@
ironIcon: 'closed-caption' ironIcon: 'closed-caption'
}); });
} }
}
if (commands.indexOf('instantmix') != -1) { if (commands.indexOf('instantmix') != -1) {
items.push({ items.push({