Stop owners from duplicating no-copy objects in-world

This commit is contained in:
Melanie Thielker
2008-12-17 12:12:23 +00:00
parent a5343c5404
commit 1c30111c7a

View File

@@ -670,6 +670,13 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
//They can't even edit the object
return false;
}
SceneObjectPart part = scene.GetSceneObjectPart(objectID);
if (part == null)
return false;
if ((part.OwnerMask & PERM_COPY) == 0)
return false;
//If they can rez, they can duplicate
return CanRezObject(objectCount, owner, objectPosition, scene);
}