mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
start using user policy
This commit is contained in:
parent
d84df77553
commit
db0f911a4d
34 changed files with 117 additions and 184 deletions
|
@ -90,7 +90,7 @@
|
|||
return g.Type == "Grouping";
|
||||
});
|
||||
|
||||
if (user.Configuration.IsAdministrator && groupedVersions.length) {
|
||||
if (user.Policy.IsAdministrator && groupedVersions.length) {
|
||||
$('.splitVersionContainer', page).show();
|
||||
} else {
|
||||
$('.splitVersionContainer', page).hide();
|
||||
|
@ -144,7 +144,7 @@
|
|||
|
||||
function renderImage(page, item, user) {
|
||||
|
||||
var imageHref = user.Configuration.IsAdministrator && item.MediaType != 'Photo' ? "edititemimages.html?id=" + item.Id : "";
|
||||
var imageHref = user.Policy.IsAdministrator && item.MediaType != 'Photo' ? "edititemimages.html?id=" + item.Id : "";
|
||||
|
||||
$('#itemImage', page).html(LibraryBrowser.getDetailImageHtml(item, imageHref));
|
||||
}
|
||||
|
@ -887,7 +887,7 @@
|
|||
html += '<div class="detailSectionHeader" style="position: relative;">';
|
||||
html += '<span>' + type.name + '</span>';
|
||||
|
||||
if (user.Configuration.IsAdministrator) {
|
||||
if (user.Policy.IsAdministrator) {
|
||||
html += '<a class="detailSectionHeaderButton" href="editcollectionitems.html?id=' + currentItem.Id + '" data-role="button" data-icon="edit" data-iconpos="notext" data-inline="true">' + Globalize.translate('ButtonEdit') + '</a>';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue