summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-31 21:23:25 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-31 22:07:19 +0300
commit6306b1fa6e1d663a2a3adc43eb97e9044ca80e88 (patch)
treed5f71b434c4263ce62d28619a7a63fdbf394d71d /indra
parent29c5bf19f706655605bd3588e0249dbd5fd52179 (diff)
SL-19496 Thumbnail should be modifiable regardless of permissions
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventorybridge.cpp6
-rw-r--r--indra/newview/llviewerinventory.cpp3
2 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index 24cbc28359..dadc7bc057 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -845,13 +845,13 @@ void LLInvFVBridge::getClipboardEntries(bool show_asset_id,
}
}
- LLViewerInventoryItem* inv_item = gInventory.getItem(mUUID);
items.push_back(std::string("thumbnail"));
- if (inv_item && !inv_item->getPermissions().allowOperationBy(PERM_MODIFY, gAgent.getID()))
+ if (isLibraryItem())
{
disabled_items.push_back(std::string("thumbnail"));
}
-
+
+ LLViewerInventoryItem *inv_item = gInventory.getItem(mUUID);
if (show_asset_id)
{
items.push_back(std::string("Copy Asset UUID"));
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index c7819c9a54..c4edc3952b 100644
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -1369,7 +1369,8 @@ void update_inventory_category(
LL_DEBUGS(LOG_INV) << "cat_id: [" << cat_id << "] name " << (obj ? obj->getName() : "(NOT FOUND)") << LL_ENDL;
if(obj)
{
- if (LLFolderType::lookupIsProtectedType(obj->getPreferredType()))
+ if (LLFolderType::lookupIsProtectedType(obj->getPreferredType())
+ && (updates.size() != 1 || !updates.has("thumbnail")))
{
LLNotificationsUtil::add("CannotModifyProtectedCategories");
return;