aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar
diff options
context:
space:
mode:
authorMelanie2011-02-21 04:02:16 +0100
committerMelanie2011-02-21 04:02:16 +0100
commit04dc43f591b8059ece94901ae32cf5485e8e9273 (patch)
tree2bf04d6de25d373de93003681830ce72fdfe4c95 /OpenSim/Region/CoreModules/Avatar
parentRestore heartbeat thread (diff)
downloadopensim-SC_OLD-04dc43f591b8059ece94901ae32cf5485e8e9273.zip
opensim-SC_OLD-04dc43f591b8059ece94901ae32cf5485e8e9273.tar.gz
opensim-SC_OLD-04dc43f591b8059ece94901ae32cf5485e8e9273.tar.bz2
opensim-SC_OLD-04dc43f591b8059ece94901ae32cf5485e8e9273.tar.xz
Prevent attaching things you don't own from inworld. Simple solution for a
complex issue
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 8c92588..dc33dbb 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -119,6 +119,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
119 return; 119 return;
120 } 120 }
121 121
122 if (part.OwnerID != remoteClient.AgentId) // Not ours
123 {
124 remoteClient.SendAgentAlertMessage(
125 "You don't have sufficient permissions to attach this object", false);
126 return;
127 }
128
122 // TODO: this short circuits multiple attachments functionality in LL viewer 2.1+ and should 129 // TODO: this short circuits multiple attachments functionality in LL viewer 2.1+ and should
123 // be removed when that functionality is implemented in opensim 130 // be removed when that functionality is implemented in opensim
124 AttachmentPt &= 0x7f; 131 AttachmentPt &= 0x7f;