mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
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
This commit is contained in:
@@ -179,6 +179,13 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
|
||||
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(
|
||||
group.GetPartName(localID),
|
||||
group.GetPartDescription(localID),
|
||||
|
||||
Reference in New Issue
Block a user