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:
parent
61453eb0cc
commit
2c089131f1
1 changed files with 22 additions and 20 deletions
|
@ -268,28 +268,30 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.Policy.IsAdministrator && commands.indexOf('edit') != -1) {
|
if (user.Policy.IsAdministrator) {
|
||||||
items.push({
|
if (commands.indexOf('edit') != -1) {
|
||||||
name: Globalize.translate('ButtonEdit'),
|
items.push({
|
||||||
id: 'edit',
|
name: Globalize.translate('ButtonEdit'),
|
||||||
ironIcon: 'mode-edit'
|
id: 'edit',
|
||||||
});
|
ironIcon: 'mode-edit'
|
||||||
}
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (commands.indexOf('editimages') != -1) {
|
if (commands.indexOf('editimages') != -1) {
|
||||||
items.push({
|
items.push({
|
||||||
name: Globalize.translate('ButtonEditImages'),
|
name: Globalize.translate('ButtonEditImages'),
|
||||||
id: 'editimages',
|
id: 'editimages',
|
||||||
ironIcon: 'photo'
|
ironIcon: 'photo'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (commands.indexOf('editsubtitles') != -1) {
|
if (commands.indexOf('editsubtitles') != -1) {
|
||||||
items.push({
|
items.push({
|
||||||
name: Globalize.translate('ButtonEditSubtitles'),
|
name: Globalize.translate('ButtonEditSubtitles'),
|
||||||
id: 'editsubtitles',
|
id: 'editsubtitles',
|
||||||
ironIcon: 'closed-caption'
|
ironIcon: 'closed-caption'
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (commands.indexOf('instantmix') != -1) {
|
if (commands.indexOf('instantmix') != -1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue