diff --git a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs index d91c36c0be..c8fb9da08a 100644 --- a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs +++ b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs @@ -91,6 +91,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell if (part.ParentGroup.IsDeleted) return; + if (part.OwnerID != client.AgentId && (!m_scene.Permissions.IsGod(client.AgentId))) + return; + part = part.ParentGroup.RootPart; part.ObjectSaleType = saleType; @@ -258,4 +261,4 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell return true; } } -} \ No newline at end of file +}