aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
index d91c36c..c8fb9da 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
91 if (part.ParentGroup.IsDeleted) 91 if (part.ParentGroup.IsDeleted)
92 return; 92 return;
93 93
94 if (part.OwnerID != client.AgentId && (!m_scene.Permissions.IsGod(client.AgentId)))
95 return;
96
94 part = part.ParentGroup.RootPart; 97 part = part.ParentGroup.RootPart;
95 98
96 part.ObjectSaleType = saleType; 99 part.ObjectSaleType = saleType;
@@ -258,4 +261,4 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
258 return true; 261 return true;
259 } 262 }
260 } 263 }
261} \ No newline at end of file 264}