aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2010-09-30 15:57:52 +0100
committerMelanie2010-09-30 15:57:52 +0100
commiteb58d910987ad34ffbd27bdee670925c1a11884e (patch)
tree42b6f49d2efc825dc1bd97d9875a5688f996afd4
parentForward-port 0.6 fix (diff)
downloadopensim-SC_OLD-eb58d910987ad34ffbd27bdee670925c1a11884e.zip
opensim-SC_OLD-eb58d910987ad34ffbd27bdee670925c1a11884e.tar.gz
opensim-SC_OLD-eb58d910987ad34ffbd27bdee670925c1a11884e.tar.bz2
opensim-SC_OLD-eb58d910987ad34ffbd27bdee670925c1a11884e.tar.xz
Prevent dropping someone else's attachments
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index cb39e46..28c50ab 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -409,6 +409,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
409 if (part == null || part.ParentGroup == null) 409 if (part == null || part.ParentGroup == null)
410 return; 410 return;
411 411
412 if (part.ParentGroup.RootPart.AttachedAvatar != remoteClient.AgentId)
413 return;
414
412 UUID inventoryID = part.ParentGroup.GetFromItemID(); 415 UUID inventoryID = part.ParentGroup.GetFromItemID();
413 416
414 ScenePresence presence; 417 ScenePresence presence;