diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 49d229da58..49ce341081 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -1009,9 +1009,10 @@ namespace OpenSim.Region.Environment.Scenes permissionToDelete = ExternalChecks.ExternalChecksCanDeleteObject(((SceneObjectGroup)selectedEnt).UUID, remoteClient.AgentId); } + SceneObjectGroup objectGroup = (SceneObjectGroup)selectedEnt; + if (permissionToTake) { - SceneObjectGroup objectGroup = (SceneObjectGroup) selectedEnt; string sceneObjectXml = objectGroup.ToXmlString(); CachedUserInfo userInfo =