diff options
author | Graham Linden <graham@lindenlab.com> | 2018-09-24 19:53:50 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-09-24 19:53:50 +0100 |
commit | 5969609c4703cd21e431e05bcb0c48fc241faf11 (patch) | |
tree | 5b699579b26b1b60b901997aa2da3d333de99ccb /indra/llinventory | |
parent | 501cd7d9022d1ac719fb56d22c6a8e3fd5d122ca (diff) | |
parent | c1974bf10a5562aed73be2d4d7d5446b668d40cb (diff) |
Merge
Diffstat (limited to 'indra/llinventory')
-rw-r--r-- | indra/llinventory/llinventorytype.cpp | 6 | ||||
-rw-r--r-- | indra/llinventory/llinventorytype.h | 2 |
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 ); |