diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index ec64b77704..a280af3f4c 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs @@ -594,7 +594,7 @@ namespace OpenSim.Data.Tests // Ownership changes when you drop an object into an object // owned by someone else Assert.That(t.OwnerID,Is.EqualTo(sog.RootPart.OwnerID)); - Assert.That(t.CurrentPermissions, Is.EqualTo(curperm)); + Assert.That(t.CurrentPermissions, Is.EqualTo(curperm | 8)); Assert.That(t.ParentID,Is.EqualTo(sog.RootPart.FolderID)); Assert.That(t.ParentPartID,Is.EqualTo(sog.RootPart.UUID)); } diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs index 2b560f40d2..225f7cf954 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs @@ -185,7 +185,7 @@ namespace OpenSim.Region.Environment.Scenes bool addFromAllowedDrop = false; if (remoteClient!=null) { - addFromAllowedDrop = remoteClient.AgentId!=part.OwnerID; + addFromAllowedDrop = remoteClient.AgentId != part.OwnerID; } part.AddInventoryItem(taskItem, addFromAllowedDrop);