aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar
diff options
context:
space:
mode:
authorUbitUmarov2017-01-19 11:34:40 +0000
committerUbitUmarov2017-01-19 11:34:40 +0000
commitfe9a785ecc8747df2b15575f0d0bd88025db881b (patch)
tree5004aec8f297d7aef6f0cf8204ed17d467ded025 /OpenSim/Region/CoreModules/Avatar
parenta few more aux methods and changes (diff)
downloadopensim-SC_OLD-fe9a785ecc8747df2b15575f0d0bd88025db881b.zip
opensim-SC_OLD-fe9a785ecc8747df2b15575f0d0bd88025db881b.tar.gz
opensim-SC_OLD-fe9a785ecc8747df2b15575f0d0bd88025db881b.tar.bz2
opensim-SC_OLD-fe9a785ecc8747df2b15575f0d0bd88025db881b.tar.xz
object Take and TakeCopy are for in scene SOPs and SPs and permitions module is NOT a shared module
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 8b8ac20..a900a2a 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -1322,7 +1322,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
1322 if (part == null) 1322 if (part == null)
1323 return; 1323 return;
1324 1324
1325 if (!m_scene.Permissions.CanTakeObject(part.UUID, remoteClient.AgentId)) 1325 SceneObjectGroup group = part.ParentGroup;
1326
1327 if (!m_scene.Permissions.CanTakeObject(group, sp))
1326 { 1328 {
1327 remoteClient.SendAgentAlertMessage( 1329 remoteClient.SendAgentAlertMessage(
1328 "You don't have sufficient permissions to attach this object", false); 1330 "You don't have sufficient permissions to attach this object", false);
@@ -1334,7 +1336,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
1334 AttachmentPt &= 0x7f; 1336 AttachmentPt &= 0x7f;
1335 1337
1336 // Calls attach with a Zero position 1338 // Calls attach with a Zero position
1337 SceneObjectGroup group = part.ParentGroup;
1338 if (AttachObject(sp, group , AttachmentPt, false, true, append)) 1339 if (AttachObject(sp, group , AttachmentPt, false, true, append))
1339 { 1340 {
1340 if (DebugLevel > 0) 1341 if (DebugLevel > 0)