summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2019-01-11 16:29:25 -0800
committerRider Linden <rider@lindenlab.com>2019-01-11 16:29:25 -0800
commit506c3b072afbe0e076279e8cb38b514458882f47 (patch)
tree46011fbf93a58044907f06ecbb5bd44ea90bf226 /indra/newview/llinventorybridge.cpp
parent00d8caa359a216620db46d49696bc79a95fe8dc2 (diff)
SL-10350: If the item is now owned by the current user assume it is in the libary. Don't let them edit.
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r--indra/newview/llinventorybridge.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index 142720dd03..fda77c72c0 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -6971,7 +6971,10 @@ void LLSettingsBridge::openItem()
LLViewerInventoryItem* item = getItem();
if (item)
{
- LLInvFVBridgeAction::doAction(item->getType(), mUUID, getInventoryModel());
+ if (item->getPermissions().getOwner() != gAgent.getID())
+ LLNotificationsUtil::add("NoEditFromLibrary");
+ else
+ LLInvFVBridgeAction::doAction(item->getType(), mUUID, getInventoryModel());
}
}