remove always-true showImageEditing variable

This commit is contained in:
cvium 2019-01-10 19:21:23 +01:00
parent 670371de64
commit 76b9411d6c

View File

@ -21,9 +21,8 @@ define(["scripts/userpasswordpage", "loading", "libraryMenu", "apphost", "emby-l
var fldImage = page.querySelector("#fldImage"); var fldImage = page.querySelector("#fldImage");
fldImage.classList.remove("hide"); fldImage.classList.remove("hide");
fldImage.innerHTML = "<img width='140px' src='" + imageUrl + "' />"; fldImage.innerHTML = "<img width='140px' src='" + imageUrl + "' />";
var showImageEditing = true;
Dashboard.getCurrentUser().then(function (loggedInUser) { Dashboard.getCurrentUser().then(function (loggedInUser) {
if (showImageEditing && appHost.supports("fileinput") && (loggedInUser.Policy.IsAdministrator || user.Policy.EnableUserPreferenceAccess)) { if (appHost.supports("fileinput") && (loggedInUser.Policy.IsAdministrator || user.Policy.EnableUserPreferenceAccess)) {
page.querySelector(".newImageForm").classList.remove("hide"); page.querySelector(".newImageForm").classList.remove("hide");
if (user.PrimaryImageTag) { if (user.PrimaryImageTag) {