diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index 8b34c28..8b7c16e 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -46,9 +46,11 @@ using GridRegion = OpenSim.Services.Interfaces.GridRegion; | |||
46 | using OpenMetaverse; | 46 | using OpenMetaverse; |
47 | using log4net; | 47 | using log4net; |
48 | using Nini.Config; | 48 | using Nini.Config; |
49 | using Mono.Addins; | ||
49 | 50 | ||
50 | namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | 51 | namespace OpenSim.Region.CoreModules.Framework.InventoryAccess |
51 | { | 52 | { |
53 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "BasicInventoryAccessModule")] | ||
52 | public class BasicInventoryAccessModule : INonSharedRegionModule, IInventoryAccessModule | 54 | public class BasicInventoryAccessModule : INonSharedRegionModule, IInventoryAccessModule |
53 | { | 55 | { |
54 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 56 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
@@ -180,12 +182,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
180 | if (!m_Scene.Permissions.CanCreateUserInventory(invType, remoteClient.AgentId)) | 182 | if (!m_Scene.Permissions.CanCreateUserInventory(invType, remoteClient.AgentId)) |
181 | return; | 183 | return; |
182 | 184 | ||
183 | InventoryFolderBase f = new InventoryFolderBase(folderID, remoteClient.AgentId); | ||
184 | InventoryFolderBase folder = m_Scene.InventoryService.GetFolder(f); | ||
185 | |||
186 | if (folder == null || folder.Owner != remoteClient.AgentId) | ||
187 | return; | ||
188 | |||
189 | if (transactionID == UUID.Zero) | 185 | if (transactionID == UUID.Zero) |
190 | { | 186 | { |
191 | ScenePresence presence; | 187 | ScenePresence presence; |