Added a check to CanDuplicateObject(), to stop duplicating prims that contains inventory items that you don't have permission to copy

0.6.1-post-fixes
MW 2008-12-17 12:53:47 +00:00
parent 1c30111c7a
commit 6c8f9078ef
1 changed files with 4 additions and 0 deletions

View File

@ -670,6 +670,7 @@ 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;
@ -677,6 +678,9 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
if ((part.OwnerMask & PERM_COPY) == 0)
return false;
if ((part.ParentGroup.GetEffectivePermissions() & PERM_COPY) == 0)
return false;
//If they can rez, they can duplicate
return CanRezObject(objectCount, owner, objectPosition, scene);
}