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

require admin for edit buttons

This commit is contained in:
Luke Pulverenti 2015-12-18 12:34:04 -05:00
parent 61453eb0cc
commit 2c089131f1

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({
name: Globalize.translate('ButtonEdit'),
id: 'edit',
@ -291,6 +292,7 @@
ironIcon: 'closed-caption'
});
}
}
if (commands.indexOf('instantmix') != -1) {
items.push({