From 714ca971d63a06f2e8071e4dad332696c5e012be Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 27 Nov 2008 03:56:21 +0000 Subject: Unconditionally set the slam bit oon all object to agent inventory transfers. Closes a possible exploit with prims containing other prims --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 9f91f37..3e4663d 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -975,7 +975,7 @@ namespace OpenSim.Region.Environment.Scenes agentItem.InvType = taskItem.InvType; agentItem.Flags = taskItem.Flags; - if ((destAgent != taskItem.OwnerID) && Permissions.PropagatePermissions()) + if (Permissions.PropagatePermissions()) { agentItem.BasePermissions = taskItem.NextPermissions; agentItem.CurrentPermissions = taskItem.NextPermissions | 8; -- cgit v1.1