summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-09-19 16:54:53 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-09-19 16:54:53 +0300
commit2ee39e7df04161655c6d2476b39bda25bcd7380c (patch)
treeec059b504746b97087b89c6b1ab9289dd9ba8994 /indra/newview
parent8d627de47874660b6781e24f801200f590cd084a (diff)
SL-9665 FIXED [EEP] "Rename" greyed out for assets in My Environments
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llinventorybridge.cpp10
-rw-r--r--indra/newview/llinventorybridge.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index 8d084f3ece..3dc138af7f 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -7021,6 +7021,16 @@ BOOL LLSettingsBridge::renameItem(const std::string& new_name)
return LLItemBridge::renameItem(new_name);
}
+BOOL LLSettingsBridge::isItemRenameable() const
+{
+ LLViewerInventoryItem* item = getItem();
+ if (item)
+ {
+ return (item->getPermissions().allowModifyBy(gAgent.getID()));
+ }
+ return FALSE;
+}
+
bool LLSettingsBridge::canUpdateParcel() const
{
return LLEnvironment::instance().canAgentUpdateParcelEnvironment();
diff --git a/indra/newview/llinventorybridge.h b/indra/newview/llinventorybridge.h
index 77d0fa4b04..ffe59b93e5 100644
--- a/indra/newview/llinventorybridge.h
+++ b/indra/newview/llinventorybridge.h
@@ -625,6 +625,7 @@ public:
virtual BOOL isMultiPreviewAllowed() { return FALSE; }
virtual void buildContextMenu(LLMenuGL& menu, U32 flags);
virtual BOOL renameItem(const std::string& new_name);
+ virtual BOOL isItemRenameable() const;
virtual LLSettingsType::type_e getSettingsType() const { return mSettingsType; }
protected: