SL-19496 Thumbnail should be modifiable regardless of permissions
parent
29c5bf19f7
commit
6306b1fa6e
|
|
@ -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"));
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue