diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs index 96e043ecfb..06a8f25baf 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs @@ -218,13 +218,13 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess private void PostInventoryAsset(UUID avatarID, AssetType type, UUID assetID, string name, int userlevel) { - if (item.AssetType == (int)AssetType.Link) + if (type == AssetType.Link) return; string userAssetServer = string.Empty; - if (IsForeignUser(item.Owner, out userAssetServer) && userAssetServer != string.Empty && m_OutboundPermission) + if (IsForeignUser(avatarID, out userAssetServer) && userAssetServer != string.Empty && m_OutboundPermission) { - m_assMapper.Post(item.AssetID, item.Owner, userAssetServer); + m_assMapper.Post(assetID, avatarID, userAssetServer); } }