Restrict inventory items added in a transaction to folder belonging

to the connected client.
viewer-2-initial-appearance
Melanie 2010-09-27 00:29:27 +01:00
parent 6f78358b09
commit 1f7d68e555
1 changed files with 6 additions and 0 deletions

View File

@ -832,6 +832,12 @@ namespace OpenSim.Region.Framework.Scenes
if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId))
return;
InventoryFolderBase f = new InventoryFolderBase(folderID, remoteClient.AgentId);
InventoryFolderBase folder = InventoryService.GetFolder(f);
if (folder == null || folder.Owner != remoteClient.AgentId)
return;
if (transactionID == UUID.Zero)
{
ScenePresence presence;