From 6c8f9078ef5d9c8c0499e76c870634ee23a97ed1 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 17 Dec 2008 12:53:47 +0000 Subject: Added a check to CanDuplicateObject(), to stop duplicating prims that contains inventory items that you don't have permission to copy --- .../Region/Environment/Modules/World/Permissions/PermissionsModule.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 9f806da..964e39c 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs @@ -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); } -- cgit v1.1