diff options
author | Justin Clark-Casey (justincc) | 2013-05-01 23:02:06 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-05-01 23:02:06 +0100 |
commit | 386d67ec61b77a6013b37b2cc070a71801172bbf (patch) | |
tree | 998dbeb4cad06ae6b7c6ea6c387bdb7cc13b17fa /OpenSim/Region | |
parent | Fix SmartThreadPool line endings in recent update from dos to unix (diff) | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC_OLD-386d67ec61b77a6013b37b2cc070a71801172bbf.zip opensim-SC_OLD-386d67ec61b77a6013b37b2cc070a71801172bbf.tar.gz opensim-SC_OLD-386d67ec61b77a6013b37b2cc070a71801172bbf.tar.bz2 opensim-SC_OLD-386d67ec61b77a6013b37b2cc070a71801172bbf.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index e0009bb..eb37626 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -646,11 +646,12 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
646 | } | 646 | } |
647 | else | 647 | else |
648 | { | 648 | { |
649 | if (remoteClient == null || so.OwnerID != remoteClient.AgentId) | 649 | if (remoteClient == null || so.RootPart.OwnerID != remoteClient.AgentId) |
650 | { | 650 | { |
651 | // Taking copy of another person's item. Take to | 651 | // Taking copy of another person's item. Take to |
652 | // Objects folder. | 652 | // Objects folder. |
653 | folder = m_Scene.InventoryService.GetFolderForType(userID, AssetType.Object); | 653 | folder = m_Scene.InventoryService.GetFolderForType(userID, AssetType.Object); |
654 | so.FromFolderID = UUID.Zero; | ||
654 | } | 655 | } |
655 | else | 656 | else |
656 | { | 657 | { |
@@ -666,7 +667,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
666 | // | 667 | // |
667 | if (action == DeRezAction.Take || action == DeRezAction.TakeCopy) | 668 | if (action == DeRezAction.Take || action == DeRezAction.TakeCopy) |
668 | { | 669 | { |
669 | if (so.FromFolderID != UUID.Zero && userID == remoteClient.AgentId) | 670 | if (so.FromFolderID != UUID.Zero && so.RootPart.OwnerID == remoteClient.AgentId) |
670 | { | 671 | { |
671 | InventoryFolderBase f = new InventoryFolderBase(so.FromFolderID, userID); | 672 | InventoryFolderBase f = new InventoryFolderBase(so.FromFolderID, userID); |
672 | folder = m_Scene.InventoryService.GetFolder(f); | 673 | folder = m_Scene.InventoryService.GetFolder(f); |