From 79cfa68edf62642c48828b32a69c98db91957aec Mon Sep 17 00:00:00 2001 From: HifiExperiments Date: Mon, 9 Sep 2024 14:58:41 -0700 Subject: [PATCH] fix accidentally clearing url fields when you don't have view permission --- .../create/entityProperties/html/js/entityProperties.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/system/create/entityProperties/html/js/entityProperties.js b/scripts/system/create/entityProperties/html/js/entityProperties.js index f94f6d2ffc..d2cff1ef91 100644 --- a/scripts/system/create/entityProperties/html/js/entityProperties.js +++ b/scripts/system/create/entityProperties/html/js/entityProperties.js @@ -2365,6 +2365,11 @@ function updateMultiDiffProperties(propertiesMapToUpdate, onlyUpdateEntity) { function createEmitTextPropertyUpdateFunction(property) { return function() { + // If we don't have canViewAssetURLs permissions, ignore clearing URLs + if (!canViewAssetURLs && property.data.placeholder === "URL" && this.value === "") { + return; + } + property.elInput.classList.remove('multi-diff'); updateProperty(property.name, this.value, property.isParticleProperty); };