diff options
Diffstat (limited to 'OpenSim/Server/Handlers')
-rw-r--r-- | OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs b/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs index 63cf034..30b3cae 100644 --- a/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs +++ b/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs | |||
@@ -153,6 +153,11 @@ namespace OpenSim.Server.Handlers.Inventory | |||
153 | m_httpServer.AddStreamHandler( | 153 | m_httpServer.AddStreamHandler( |
154 | new RestDeserialiseTrustedHandler<Guid, List<InventoryFolderBase>> | 154 | new RestDeserialiseTrustedHandler<Guid, List<InventoryFolderBase>> |
155 | ("POST", "/RootFolders/", GetInventorySkeleton, CheckTrustSource)); | 155 | ("POST", "/RootFolders/", GetInventorySkeleton, CheckTrustSource)); |
156 | |||
157 | m_httpServer.AddStreamHandler( | ||
158 | new RestDeserialiseTrustedHandler<InventoryItemBase, int> | ||
159 | ("POST", "/AssetPermissions/", GetAssetPermissions, CheckTrustSource)); | ||
160 | |||
156 | } | 161 | } |
157 | 162 | ||
158 | #region Wrappers for converting the Guid parameter | 163 | #region Wrappers for converting the Guid parameter |
@@ -185,6 +190,8 @@ namespace OpenSim.Server.Handlers.Inventory | |||
185 | if ((folder.Type != (short)AssetType.Folder) && (folder.Type != (short)AssetType.Unknown)) | 190 | if ((folder.Type != (short)AssetType.Folder) && (folder.Type != (short)AssetType.Unknown)) |
186 | folders[(AssetType)folder.Type] = folder; | 191 | folders[(AssetType)folder.Type] = folder; |
187 | } | 192 | } |
193 | // Put the root folder there, as type Folder | ||
194 | folders[AssetType.Folder] = root; | ||
188 | return folders; | 195 | return folders; |
189 | } | 196 | } |
190 | } | 197 | } |
@@ -235,6 +242,11 @@ namespace OpenSim.Server.Handlers.Inventory | |||
235 | return m_InventoryService.GetInventorySkeleton(userID); | 242 | return m_InventoryService.GetInventorySkeleton(userID); |
236 | } | 243 | } |
237 | 244 | ||
245 | public int GetAssetPermissions(InventoryItemBase item) | ||
246 | { | ||
247 | return m_InventoryService.GetAssetPermissions(item.Owner, item.AssetID); | ||
248 | } | ||
249 | |||
238 | #endregion | 250 | #endregion |
239 | 251 | ||
240 | /// <summary> | 252 | /// <summary> |