summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2017-08-31 17:32:48 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2017-08-31 17:32:48 +0300
commitcba6748701a8f6bbbfc8631c0ccb0a5027ae935b (patch)
tree54d99da785a6d685b2e0d73cfd79d10b6210fed7 /indra
parent2cbb3d32af0c1ca77c64c2539f67c8a33a3fc6dd (diff)
MAINT-7761 FIXED Inventory UUID search does not exclude assets that are limited perms.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventorybridge.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index a85a471272..3f18039376 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -245,8 +245,8 @@ std::string LLInvFVBridge::getSearchableUUIDString() const
const LLInventoryModel* model = getInventoryModel();
if (model)
{
- const LLInventoryItem *item = model->getItem(mUUID);
- if(item)
+ const LLViewerInventoryItem *item = model->getItem(mUUID);
+ if(item && (item->getIsFullPerm() || gAgent.isGodlikeWithoutAdminMenuFakery()))
{
std::string uuid = item->getAssetUUID().asString();
LLStringUtil::toUpper(uuid);