Stop owners from duplicating no-copy objects in-world

0.6.1-post-fixes
Melanie Thielker 2008-12-17 12:12:23 +00:00
parent a5343c5404
commit 1c30111c7a
1 changed files with 7 additions and 0 deletions

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);
}