Fix a minor economy issue

viewer-2-initial-appearance
Melanie 2010-09-25 06:09:35 +01:00
parent 30d3e8a13e
commit 3b76d7bbb6
1 changed files with 4 additions and 1 deletions

View File

@ -91,6 +91,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
if (part.ParentGroup.IsDeleted) if (part.ParentGroup.IsDeleted)
return; return;
if (part.OwnerID != client.AgentId && (!m_scene.Permissions.IsGod(client.AgentId)))
return;
part = part.ParentGroup.RootPart; part = part.ParentGroup.RootPart;
part.ObjectSaleType = saleType; part.ObjectSaleType = saleType;
@ -258,4 +261,4 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
return true; return true;
} }
} }
} }