VWR-27090 Allow Calling Cards to carry the "(link)" suffix in the Inventory pane

meow-7.2.2
Aaron Stone 2011-10-06 20:15:18 -04:00
parent 5f38ec7f92
commit 956c145cc5
1 changed files with 8 additions and 7 deletions

View File

@ -1376,16 +1376,17 @@ std::string LLItemBridge::getLabelSuffix() const
LLInventoryItem* item = getItem();
if(item)
{
// it's a bit confusing to put nocopy/nomod/etc on calling cards.
// Any type can have the link suffix...
BOOL broken_link = LLAssetType::lookupIsLinkType(item->getType());
if (broken_link) return BROKEN_LINK;
BOOL link = item->getIsLinkType();
if (link) return LINK;
// ...but it's a bit confusing to put nocopy/nomod/etc suffixes on calling cards.
if(LLAssetType::AT_CALLINGCARD != item->getType()
&& item->getPermissions().getOwner() == gAgent.getID())
{
BOOL broken_link = LLAssetType::lookupIsLinkType(item->getType());
if (broken_link) return BROKEN_LINK;
BOOL link = item->getIsLinkType();
if (link) return LINK;
BOOL copy = item->getPermissions().allowCopyBy(gAgent.getID());
if (!copy)
{