diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index c20c7188b7..71ef524147 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -4270,7 +4270,7 @@ namespace OpenSim.Region.Environment.Scenes foreach (SceneObjectPart child in partList) { child.Inventory.ChangeInventoryOwner(remoteClient.AgentId); - child.Inventory.ApplyNextOwnerPermissions(); + child.ApplyNextOwnerPermissions(); } } diff --git a/OpenSim/Region/Environment/Scenes/SceneGraph.cs b/OpenSim/Region/Environment/Scenes/SceneGraph.cs index 0c4e899a1b..3b6aa154e4 100644 --- a/OpenSim/Region/Environment/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Environment/Scenes/SceneGraph.cs @@ -423,10 +423,8 @@ namespace OpenSim.Region.Environment.Scenes { SceneObjectGroup group = (SceneObjectGroup)obj; - if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) + if (group.OwnerID != remoteClient.AgentId) group.SetGroup(GroupID, remoteClient); - else - remoteClient.SendAgentAlertMessage("You don't have permission to set the group", false); } } } diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs index 62e680b598..053e0daeb9 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs @@ -302,7 +302,9 @@ namespace OpenSim.Region.Environment.Scenes public void ApplyNextOwnerPermissions() { foreach (SceneObjectPart part in m_parts.Values) - part.Inventory.ApplyNextOwnerPermissions(); + { + part.ApplyNextOwnerPermissions(); + } } public string GetStateSnapshot()