Added a check to CanDuplicateObject(), to stop duplicating prims that contains inventory items that you don't have permission to copy
parent
1c30111c7a
commit
6c8f9078ef
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue