diff options
author | Melanie | 2011-02-21 04:02:16 +0100 |
---|---|---|
committer | Melanie | 2011-02-21 04:02:16 +0100 |
commit | 04dc43f591b8059ece94901ae32cf5485e8e9273 (patch) | |
tree | 2bf04d6de25d373de93003681830ce72fdfe4c95 /OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |
parent | Restore heartbeat thread (diff) | |
download | opensim-SC-04dc43f591b8059ece94901ae32cf5485e8e9273.zip opensim-SC-04dc43f591b8059ece94901ae32cf5485e8e9273.tar.gz opensim-SC-04dc43f591b8059ece94901ae32cf5485e8e9273.tar.bz2 opensim-SC-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/Attachments/AttachmentsModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 7 |
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; |