summaryrefslogtreecommitdiff
path: root/indra/llinventory
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-09-20 15:39:06 -0700
committerRider Linden <rider@lindenlab.com>2018-09-20 15:39:06 -0700
commitaafb9bebf48f79d06c82e601dd19cf2f2d70de9e (patch)
tree825d9d90016115db839505060bc9a74f20f28009 /indra/llinventory
parent5c997d5ebc7b5d0a73b313da302d9ca0f5f6c65a (diff)
SL-9636: Hide the anyone, group share and for sale checks in the properties panel for settings.
(didn't do others items it may apply to)
Diffstat (limited to 'indra/llinventory')
-rw-r--r--indra/llinventory/llinventorytype.cpp6
-rw-r--r--indra/llinventory/llinventorytype.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/indra/llinventory/llinventorytype.cpp b/indra/llinventory/llinventorytype.cpp
index 2b6b53556d..458adc9edd 100644
--- a/indra/llinventory/llinventorytype.cpp
+++ b/indra/llinventory/llinventorytype.cpp
@@ -209,6 +209,12 @@ bool LLInventoryType::cannotRestrictPermissions(LLInventoryType::EType type)
}
}
+// Should show permissions that apply only to objects rezed in world.
+bool LLInventoryType::showInWorldPermissions(LLInventoryType::EType type)
+{
+ return (type != IT_SETTINGS);
+}
+
bool inventory_and_asset_types_match(LLInventoryType::EType inventory_type,
LLAssetType::EType asset_type)
{
diff --git a/indra/llinventory/llinventorytype.h b/indra/llinventory/llinventorytype.h
index 86486373b5..8f2267307b 100644
--- a/indra/llinventory/llinventorytype.h
+++ b/indra/llinventory/llinventorytype.h
@@ -134,6 +134,8 @@ public:
// true if this type cannot have restricted permissions.
static bool cannotRestrictPermissions(EType type);
+ static bool showInWorldPermissions(EType type);
+
private:
// don't instantiate or derive one of these objects
LLInventoryType( void );