Plug a hole that allows selling a copy of no copy objects when using hacked god mode to fool the viewer into thinking it can set that sale type

avinationmerge
Melanie 2011-05-14 17:24:22 +02:00
parent c4fad3d887
commit d773d89145
1 changed files with 7 additions and 0 deletions

View File

@ -179,6 +179,13 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
return false; return false;
} }
if ((perms & (uint)PermissionMask.Copy) == 0)
{
if (m_dialogModule != null)
m_dialogModule.SendAlertToUser(remoteClient, "This sale has been blocked by the permissions system");
return false;
}
AssetBase asset = m_scene.CreateAsset( AssetBase asset = m_scene.CreateAsset(
group.GetPartName(localID), group.GetPartName(localID),
group.GetPartDescription(localID), group.GetPartDescription(localID),