From cba6748701a8f6bbbfc8631c0ccb0a5027ae935b Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Thu, 31 Aug 2017 17:32:48 +0300 Subject: MAINT-7761 FIXED Inventory UUID search does not exclude assets that are limited perms. --- indra/newview/llinventorybridge.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview') 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); -- cgit v1.2.3